From 3e1c5d8083a5d3459b55e9a235257c6d55bf9c36 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 2 Apr 2014 07:32:24 +0000 Subject: [PATCH] Fix for isssue# Bug #391: fatal error when Show bathymetryin OCC scene. --- src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2