From 2cf5ec3f1cc97d1bb805f4d22f19c2a7e2d97df0 Mon Sep 17 00:00:00 2001 From: vpa Date: Fri, 8 May 2015 13:44:02 +0300 Subject: [PATCH] 0026139: AIS_InteractiveContext::Display performance regression Regression with VIS tests in release mode was fixed --- src/SelectMgr/SelectMgr_SelectableObjectSet.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }