Salome HOME
Profile object creation.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_PolylineOp.cxx
index ce078a5f2cd3f04f3d46f789424a7b723ea1cdbb..74cb0f6307f2bc8264dbbfcfd041ed8e4b649e90 100755 (executable)
@@ -236,15 +236,14 @@ bool HYDROGUI_PolylineOp::processApply( int& theUpdateFlags,
 
   theUpdateFlags = UF_Model;
 
+  // the polyline should be rebuild in all viewers, where it is displayed
+  theUpdateFlags |= UF_Viewer | UF_GV_Forced;
+  theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced;
+
   size_t anActiveViewId = HYDROGUI_Tool::GetActiveGraphicsViewId( module() );
-  if ( anActiveViewId != 0 )
-  {
-    theUpdateFlags |= UF_Viewer | UF_GV_Forced;
-  }
-  else
+  if ( anActiveViewId == 0 )
   {
     anActiveViewId = HYDROGUI_Tool::GetActiveOCCViewId( module() );
-    theUpdateFlags |= UF_OCCViewer | UF_OCC_Forced;
   }
 
   if( !myIsEdit )