diff --git a/src/SelectMgr/SelectMgr_SelectableObjectSet.cxx b/src/SelectMgr/SelectMgr_SelectableObjectSet.cxx index 6e2b00e4c9..91bc2632f1 100644 --- a/src/SelectMgr/SelectMgr_SelectableObjectSet.cxx +++ b/src/SelectMgr/SelectMgr_SelectableObjectSet.cxx @@ -34,7 +34,8 @@ SelectMgr_SelectableObjectSet::SelectMgr_SelectableObjectSet() //======================================================================= void SelectMgr_SelectableObjectSet::Append (const Handle(SelectMgr_SelectableObject)& theObject) { - if (Size() < myObjects.Add (theObject)) + Standard_Integer aSize = Size(); + if (aSize < myObjects.Add (theObject)) { MarkDirty(); }