mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +03:00
0026306: Access to deleted object in ShapeFix_FixSmallSolid
Code corrected to avoid accessing element of sequence by reference after it is removed.
This commit is contained in:
parent
7e66f8d719
commit
168bef440d
@ -455,8 +455,9 @@ TopoDS_Shape ShapeFix_FixSmallSolid::Merge (
|
|||||||
|
|
||||||
// remove the small solid
|
// remove the small solid
|
||||||
theContext->Remove (aSmallSolid);
|
theContext->Remove (aSmallSolid);
|
||||||
aSmallSolids.Remove (aSolidIter);
|
|
||||||
SendWarning ( aSmallSolid, Message_Msg( "ShapeFix.FixSmallSolid.MSG1" ));
|
SendWarning ( aSmallSolid, Message_Msg( "ShapeFix.FixSmallSolid.MSG1" ));
|
||||||
|
|
||||||
|
aSmallSolids.Remove (aSolidIter);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
aSolidIter.Next();
|
aSolidIter.Next();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user