]> Creatis software - bbtk.git/commitdiff
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
authorEduardo DAVILA <davila@localhost.localdomain>
Wed, 16 Aug 2017 13:36:49 +0000 (15:36 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Wed, 16 Aug 2017 13:36:49 +0000 (15:36 +0200)
packages/vtk/src/bbvtkStructuredPointsReader.cxx

index 4dd352be5cdfb93d7279bad332fad4ff72326efa..917a66effc0896ca8f942a5f3b1f5a33c9f537b8 100644 (file)
@@ -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 );
        }