From: eap Date: Mon, 24 Apr 2017 14:17:28 +0000 (+0300) Subject: IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation X-Git-Tag: Before_multi_study_removal_06072017~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=262400931dcb6c15ec1adf5b85aeaf18d0ddb533;p=modules%2Fsmesh.git IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation --- diff --git a/src/OBJECT/SMESH_ScalarBarActor.cxx b/src/OBJECT/SMESH_ScalarBarActor.cxx index c24369e0f..8096b1609 100644 --- a/src/OBJECT/SMESH_ScalarBarActor.cxx +++ b/src/OBJECT/SMESH_ScalarBarActor.cxx @@ -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];