Toposhape/Part:: Fix, relocate and test element methods in ComplexGeoData and TopoShape
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
# include <unordered_set>
|
||||
#endif
|
||||
|
||||
#include "DocumentObject.h"
|
||||
#include "MappedElement.h"
|
||||
|
||||
using namespace Data;
|
||||
@@ -161,4 +162,11 @@ bool ElementNameComparator::operator()(const MappedName& leftName,
|
||||
}
|
||||
}
|
||||
return leftName.size() < rightName.size();
|
||||
}
|
||||
}
|
||||
|
||||
HistoryItem::HistoryItem(App::DocumentObject *obj, const Data::MappedName &name)
|
||||
:obj(obj),tag(0),element(name)
|
||||
{
|
||||
if(obj)
|
||||
tag = obj->getID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user