From c52506e22844e0d45570ceeb7195ee6de981e9c0 Mon Sep 17 00:00:00 2001 From: isn Date: Mon, 16 Nov 2015 15:07:03 +0300 Subject: [PATCH] patch for bug with 0-tranparency on the non-LCM objects --- src/HYDROGUI/HYDROGUI_Shape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.2