mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 17:50:35 +05:00
ILMAB project.
Prevent adding same labels in _freeLabels
This commit is contained in:
parent
f1519c7ef3
commit
161068a9fd
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user