From: isn Date: Mon, 16 Nov 2015 12:07:03 +0000 (+0300) Subject: patch for bug with 0-tranparency on the non-LCM objects X-Git-Tag: v1.5~37^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c52506e22844e0d45570ceeb7195ee6de981e9c0;p=modules%2Fhydro.git patch for bug with 0-tranparency on the non-LCM objects --- diff --git a/src/HYDROGUI/HYDROGUI_Shape.cxx b/src/HYDROGUI/HYDROGUI_Shape.cxx index 3d44b09a..4c398665 100644 --- a/src/HYDROGUI/HYDROGUI_Shape.cxx +++ b/src/HYDROGUI/HYDROGUI_Shape.cxx @@ -517,7 +517,7 @@ void HYDROGUI_Shape::buildShape() if ( !myObject.IsNull() ) myShape->SetOwner( myObject ); - if ( !myObject->IsKind( STANDARD_TYPE(HYDROData_LandCoverMap) ) ) + if ( !myObject.IsNull() && !myObject->IsKind( STANDARD_TYPE(HYDROData_LandCoverMap) ) ) myShape->SetTransparency( 0 ); myShape->SetDisplayMode( (AIS_DisplayMode)myDisplayMode ); myShape->SetSelectionMode( (Standard_Integer)mySelectionMode );