]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkStructuredPointsReader.cxx
Clean code
[bbtk.git] / packages / vtk / src / bbvtkStructuredPointsReader.cxx
index 930eb905d3e42836a4ebdca03ede83617b1391f1..917a66effc0896ca8f942a5f3b1f5a33c9f537b8 100644 (file)
@@ -59,9 +59,15 @@ void StructuredPointsReader::Process()
     if ( bbGetInputIn().c_str()!=empty)
        {
                spr -> SetFileName( bbGetInputIn().c_str() );
+//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
        } else {
                bbSetOutputOut( NULL );
        }