]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #132 - problems on show image and polyline (V0_3_1).
authornds <nds@opencascade.com>
Wed, 27 Nov 2013 08:25:48 +0000 (08:25 +0000)
committernds <nds@opencascade.com>
Wed, 27 Nov 2013 08:25:48 +0000 (08:25 +0000)
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 )