mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
IPAL54097: SIGSEGV in Scalar Bar Properties dialog and crash in next operation
This commit is contained in:
parent
3ac75b1234
commit
417aadaeea
@ -578,7 +578,10 @@ int SMESH_ScalarBarActor::RenderOpaqueGeometry(vtkViewport *viewport)
|
|||||||
|
|
||||||
// rnv begin
|
// rnv begin
|
||||||
// Customization of the vtkScalarBarActor to show distribution histogram.
|
// Customization of the vtkScalarBarActor to show distribution histogram.
|
||||||
if(myDistributionColoringType == SMESH_MULTICOLOR_TYPE && GetDistributionVisibility() && distrVisibility)
|
if ( myDistributionColoringType == SMESH_MULTICOLOR_TYPE &&
|
||||||
|
GetDistributionVisibility() &&
|
||||||
|
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…
Reference in New Issue
Block a user