1
0
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:
vpa
2015-07-21 17:04:42 +03:00
committed by bugmaster
parent 5a19c30371
commit 72080ae11f
2 changed files with 48 additions and 2 deletions

View File

@@ -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;
}