]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
avoid viewer update on each erase of shape
authorasl <asl@opencascade.com>
Tue, 3 Dec 2013 07:44:18 +0000 (07:44 +0000)
committerasl <asl@opencascade.com>
Tue, 3 Dec 2013 07:44:18 +0000 (07:44 +0000)
src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx
src/HYDROGUI/HYDROGUI_Shape.cxx

index b9788afd9ed901299b1fdc17277dd6f0734a06c5..b2316376c5af6c293bea39822b9b586cc0a92b2e 100644 (file)
@@ -89,6 +89,7 @@ void HYDROGUI_OCCDisplayer::Erase( const HYDROData_SequenceOfObjects& theObjs,
 
     module()->removeObjectShape( (size_t)aViewer, anObj );
   }
+  aViewer->update();
 }
 
 HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int                             theViewerId,
index 4ddd3b2dde6b17d497a192e5c6419cb0a788c40a..4ba2ed2dd7422ba0768d12003154d2bfb9796140 100644 (file)
@@ -83,7 +83,7 @@ HYDROGUI_Shape::HYDROGUI_Shape( const Handle(AIS_InteractiveContext)& theContext
 
 HYDROGUI_Shape::~HYDROGUI_Shape()
 {
-  erase();
+  erase( false );
 
   if ( !myShape.IsNull() )
     myShape.Nullify();