Salome HOME
IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation
authoreap <eap@opencascade.com>
Mon, 24 Apr 2017 14:17:28 +0000 (17:17 +0300)
committereap <eap@opencascade.com>
Mon, 24 Apr 2017 14:17:28 +0000 (17:17 +0300)
src/OBJECT/SMESH_ScalarBarActor.cxx

index c24369e..8096b16 100644 (file)
@@ -588,7 +588,8 @@ int SMESH_ScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
       // Customization of the vtkScalarBarActor to show distribution histogram.
       if ( myDistributionColoringType == SMESH_MULTICOLOR_TYPE &&
            GetDistributionVisibility() &&
-           distrVisibility )
+           distrVisibility &&
+           myNbValues[i] > 0 )
       {
         rgb = distColors->GetPointer(3*dcCount); //write into array directly
         rgb[0] = rgba[0];