mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
ILMAB project.
Prevent adding same labels in _freeLabels
This commit is contained in:
parent
f1519c7ef3
commit
161068a9fd
@ -488,6 +488,7 @@ bool GEOM_Engine::RemoveObject(Handle(GEOM_BaseObject)& theObject)
|
|||||||
|
|
||||||
// Remember the label to reuse it then
|
// Remember the label to reuse it then
|
||||||
std::list<TDF_Label>& aFreeLabels = _freeLabels[aDocID];
|
std::list<TDF_Label>& aFreeLabels = _freeLabels[aDocID];
|
||||||
|
if ( aFreeLabels.empty() || aFreeLabels.back() != aLabel )
|
||||||
aFreeLabels.push_back(aLabel);
|
aFreeLabels.push_back(aLabel);
|
||||||
|
|
||||||
theObject.Nullify();
|
theObject.Nullify();
|
||||||
|
Loading…
Reference in New Issue
Block a user