]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for isssue# Bug #391: fatal error when Show bathymetryin OCC scene.
authormzn <mzn@opencascade.com>
Wed, 2 Apr 2014 07:32:24 +0000 (07:32 +0000)
committermzn <mzn@opencascade.com>
Wed, 2 Apr 2014 07:32:24 +0000 (07:32 +0000)
src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx

index 5e7efdf31f2331b6d4d915dabdf04341bf9bb173..719b6e46c90d6bed23559704a5c1260806d8a257 100644 (file)
@@ -326,7 +326,9 @@ bool HYDROGUI_OCCDisplayer::Display( const Handle(HYDROData_Entity)& theObject,
   // create if needed
   if ( !anObjShape ) {
     anObjShape = createShape( aViewerId, aCtx, theObject );
   // create if needed
   if ( !anObjShape ) {
     anObjShape = createShape( aViewerId, aCtx, theObject );
-    anObjShape->setIsToUpdate( true );
+    if ( anObjShape ) {
+      anObjShape->setIsToUpdate( true );
+    }
   }
   
   // Process the shape
   }
   
   // Process the shape