mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-03 00:34:29 +05:00
IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation
This commit is contained in:
parent
f6b5d2f920
commit
262400931d
@ -588,7 +588,8 @@ int SMESH_ScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
|
|||||||
// Customization of the vtkScalarBarActor to show distribution histogram.
|
// Customization of the vtkScalarBarActor to show distribution histogram.
|
||||||
if ( myDistributionColoringType == SMESH_MULTICOLOR_TYPE &&
|
if ( myDistributionColoringType == SMESH_MULTICOLOR_TYPE &&
|
||||||
GetDistributionVisibility() &&
|
GetDistributionVisibility() &&
|
||||||
distrVisibility )
|
distrVisibility &&
|
||||||
|
myNbValues[i] > 0 )
|
||||||
{
|
{
|
||||||
rgb = distColors->GetPointer(3*dcCount); //write into array directly
|
rgb = distColors->GetPointer(3*dcCount); //write into array directly
|
||||||
rgb[0] = rgba[0];
|
rgb[0] = rgba[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user