]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for bug with 0-tranparency on the non-LCM objects
authorisn <isn@opencascade.com>
Mon, 16 Nov 2015 12:07:03 +0000 (15:07 +0300)
committerisn <isn@opencascade.com>
Mon, 16 Nov 2015 12:07:03 +0000 (15:07 +0300)
src/HYDROGUI/HYDROGUI_Shape.cxx

index 3d44b09abfe3cf1f018c401178ca1ae49d1a9c74..4c3986651b2b24406a64e0d7303cde6eefcd471c 100644 (file)
@@ -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 );