]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Correction for Bug IPAL14356 (request of QA):
authorenk <enk@opencascade.com>
Tue, 16 Jan 2007 14:08:17 +0000 (14:08 +0000)
committerenk <enk@opencascade.com>
Tue, 16 Jan 2007 14:08:17 +0000 (14:08 +0000)
Application hangs up after trying to create StreamLines.

src/PIPELINE/VISU_StreamLinesPL.cxx

index 697e99d014b407fbe6d298109f1c20c632b65d6e..c7005b1ac10caa19bd298195c96078375f9933bd 100644 (file)
@@ -514,16 +514,9 @@ VISU_StreamLinesPL
   GetInput2()->Update();
   VISU::CellDataToPoint(myStream,myCellDataToPointData,GetInput2(),myFieldTransform);
   vtkFloatingPointType *aBounds = GetInput2()->GetBounds();
-
-  myStream->Update();
-  // check: Is streamlines exists? If no points in stream lines, return input2
-  if(myStream->GetOutput()->GetNumberOfPoints() == 0)
-    myGeomFilter->SetInput(GetInput2());
-  else
-    myGeomFilter->SetInput(myStream->GetOutput());
-  
   myGeomFilter->SetExtent(aBounds);
   myGeomFilter->ExtentClippingOn();
+  myGeomFilter->SetInput(myStream->GetOutput());
   return myGeomFilter->GetOutput();
 }