Skip to content

Commit 9097a67

Browse files
committed
gcc compilation fixes
1 parent c6fc15e commit 9097a67

File tree

1 file changed

+1
-1
lines changed
  • 19_ITK-5_PipelineConstruction/code/src

1 file changed

+1
-1
lines changed

19_ITK-5_PipelineConstruction/code/src/main.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ typename TImageType::Pointer SafeReadImage(const std::string &fName)
5050
catch (itk::ExceptionObject& e)
5151
{
5252
std::cerr << "Exception caught: " << e.what() << "\n";
53-
return typename TImageType::New();
53+
return reader->GetOutput();
5454
}
5555

5656
return reader->GetOutput();

0 commit comments

Comments
 (0)