IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation

This commit is contained in:
eap 2017-04-24 17:17:28 +03:00
parent f6b5d2f920
commit 262400931d

View 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];