]> SALOME platform Git repositories - modules/smesh.git/commitdiff
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 c24369e0fdcbc41bf734bf1fc7c7efa5d322c7d6..8096b1609fbc22ee5829b729af09cd414f5f4c56 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];