Salome HOME
refs #1832
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_StreamOp.cxx
index d39868ccf3d9f68f94b76db38acffbaea9f32431..89f44d9997b97399b97559e2d379a1deb63634f7 100755 (executable)
@@ -420,24 +420,24 @@ void HYDROGUI_StreamOp::createPreview()
 
   HYDROData_Bathymetry::AltitudePoints points;
 
-  bool WireIntersections = false;
+  bool ProjStat = true;
   HYDROData_DTM::CreateProfilesFromDTM( aRefProfiles, ddz, ss, points, Out3dPres, Out2dPres, OutLeftB, OutRightB,
-    OutInlet, OutOutlet, true, true, InvInd, MAX_POINTS_IN_PREVIEW, WireIntersections );
+    OutInlet, OutOutlet, true, true, InvInd, MAX_POINTS_IN_PREVIEW, ProjStat );
 
   aPanel->clearAllBackgroundColorsForProfileList();
   for (std::set<int>::const_iterator it = InvInd.begin(); it != InvInd.end(); it++)
     aPanel->setBackgroundColorForProfileList(*it, QColor(Qt::yellow));
 
-  aPrsDef.myInlet = TopoDS::Wire(OutInlet);
-  aPrsDef.myOutlet = TopoDS::Wire(OutOutlet);
-  aPrsDef.myLeftBank = TopoDS::Wire(OutLeftB);
-  aPrsDef.myRightBank = TopoDS::Wire(OutRightB);
-  if (!WireIntersections)
+  aPrsDef.myInlet = OutInlet;
+  aPrsDef.myOutlet = OutOutlet;
+  aPrsDef.myLeftBank = OutLeftB;
+  aPrsDef.myRightBank = OutRightB;
+  if (ProjStat)
     aPrsDef.myPrs2D = Out2dPres;
   aPrsDef.myPrs3D = Out3dPres;
 
-  if (WireIntersections)
-    aPanel->addWarning(tr("STREAM_SELF_INTERSECTIONS"));
+  if (!ProjStat)
+    aPanel->addWarning(tr("STREAM_PROJECTION_FAILED"));
 
   myPreviewPrs->setShape( aPrsDef.myPrs2D );
 }