1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0033066: Visualization - null pointer dereference in MeshVS_ElementalColorPrsBuilder::Build() function

Added missing Boolean flag check.
This commit is contained in:
kgv
2022-07-15 16:06:02 +03:00
committed by smoskvin
parent 0bab2704ae
commit bbf49a300c

View File

@@ -625,9 +625,12 @@ void MeshVS_ElementalColorPrsBuilder::Build ( const Handle(Prs3d_Presentation)&
}
aGroup2->AddPrimitiveArray (aFaceTriangles);
if (anEdgeOn)
{
aSGroup->AddPrimitiveArray (anEdgeSegments);
}
}
}
//================================================================
// Function : SetColors