mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026430: Visualization - segmentation fault in opened local context
- check for empty dataset in Select3D_SensitiveSet was added; - test case for issue #26430
This commit is contained in:
@@ -51,8 +51,8 @@ Standard_Boolean Select3D_SensitiveSet::Matches (SelectBasics_SelectingVolumeMan
|
||||
|
||||
thePickResult = SelectBasics_PickResult (RealLast(), RealLast());
|
||||
|
||||
if (!theMgr.Overlaps (aBVH->MinPoint (0),
|
||||
aBVH->MaxPoint (0)))
|
||||
if (myContent->Size() < 1 || !theMgr.Overlaps (aBVH->MinPoint (0),
|
||||
aBVH->MaxPoint (0)))
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user