Skip to content

Commit 2cf5ec3

Browse files
vpabugmaster
authored andcommitted
0026139: AIS_InteractiveContext::Display performance regression
Regression with VIS tests in release mode was fixed
1 parent 2124e76 commit 2cf5ec3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/SelectMgr/SelectMgr_SelectableObjectSet.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ SelectMgr_SelectableObjectSet::SelectMgr_SelectableObjectSet()
3434
//=======================================================================
3535
void SelectMgr_SelectableObjectSet::Append (const Handle(SelectMgr_SelectableObject)& theObject)
3636
{
37-
if (Size() < myObjects.Add (theObject))
37+
Standard_Integer aSize = Size();
38+
if (aSize < myObjects.Add (theObject))
3839
{
3940
MarkDirty();
4041
}

0 commit comments

Comments
 (0)