From: mzn Date: Wed, 2 Apr 2014 07:32:24 +0000 (+0000) Subject: Fix for isssue# Bug #391: fatal error when Show bathymetryin OCC scene. X-Git-Tag: BR_hydro_v1_0_1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e1c5d8083a5d3459b55e9a235257c6d55bf9c36;p=modules%2Fhydro.git Fix for isssue# Bug #391: fatal error when Show bathymetryin OCC scene. --- diff --git a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx index 5e7efdf3..719b6e46 100644 --- a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx +++ b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx @@ -326,7 +326,9 @@ bool HYDROGUI_OCCDisplayer::Display( const Handle(HYDROData_Entity)& theObject, // create if needed if ( !anObjShape ) { anObjShape = createShape( aViewerId, aCtx, theObject ); - anObjShape->setIsToUpdate( true ); + if ( anObjShape ) { + anObjShape->setIsToUpdate( true ); + } } // Process the shape