ILMAB project.

Prevent adding same labels in _freeLabels
This commit is contained in:
eap 2013-10-03 14:09:33 +00:00
parent f1519c7ef3
commit 161068a9fd

View File

@ -488,7 +488,8 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_BaseObject)& theObject)
// Remember the label to reuse it then
std::list<TDF_Label>& aFreeLabels = _freeLabels[aDocID];
aFreeLabels.push_back(aLabel);
if ( aFreeLabels.empty() || aFreeLabels.back() != aLabel )
aFreeLabels.push_back(aLabel);
theObject.Nullify();