}
//polygons & cell colors
- unsigned char *rgba, *rgb;
+ unsigned char *rgb;
+ const unsigned char *rgba;
vtkIdType ptIds[4], dcCount=0;
for ( i = 0; i < numColors; i++ )
{
// 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];