Salome HOME
Fix for the bug #45: check and warning when the same image is used in 2 arguments.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_OCCDisplayer.cxx
index f702ecbfef8940d99c13c439139ddba49d11dac3..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,
@@ -107,7 +108,8 @@ HYDROGUI_Shape* HYDROGUI_OCCDisplayer::createShape( const int
        anObjectKind != KIND_ZONE &&
        anObjectKind != KIND_OBSTACLE &&
        anObjectKind != KIND_PROFILE &&
-       anObjectKind != KIND_STREAM )
+       anObjectKind != KIND_STREAM &&
+       anObjectKind != KIND_CHANNEL )
     return aResShape;
 
   aResShape = new HYDROGUI_Shape( theContext, theObject );