From: Eduardo DAVILA Date: Wed, 16 Aug 2017 13:36:49 +0000 (+0200) Subject: #3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=08879a0d59761daa5f4540c551bf97c4919e2e0b;p=bbtk.git #3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7 --- diff --git a/packages/vtk/src/bbvtkStructuredPointsReader.cxx b/packages/vtk/src/bbvtkStructuredPointsReader.cxx index 4dd352b..917a66e 100644 --- a/packages/vtk/src/bbvtkStructuredPointsReader.cxx +++ b/packages/vtk/src/bbvtkStructuredPointsReader.cxx @@ -59,14 +59,15 @@ void StructuredPointsReader::Process() if ( bbGetInputIn().c_str()!=empty) { spr -> SetFileName( bbGetInputIn().c_str() ); - sp = spr->GetOutput(); //EED 2017-01-01 Migration VTK7 #if VTK_MAJOR_VERSION <= 5 + sp = spr->GetOutput(); sp -> Update(); + bbSetOutputOut( sp ); #else spr -> Update(); + bbSetOutputOut( spr->GetOutput() ); #endif - bbSetOutputOut( sp ); } else { bbSetOutputOut( NULL ); }