first take on enhanced feature pick task

This commit is contained in:
Stefan Tröger
2015-07-15 22:04:58 +02:00
parent 28bb00d9e2
commit a2dba9be6e
5 changed files with 228 additions and 113 deletions

View File

@@ -116,7 +116,7 @@ bool GeoFeatureGroup::hasObject(const DocumentObject* obj, bool recursive) const
if (*it == obj)
return true;
if (recursive && (*it)->getTypeId().isDerivedFrom(GeoFeatureGroup::getClassTypeId())) {
if (this->hasObject(static_cast<GeoFeatureGroup*>(*it), recursive))
if (static_cast<GeoFeatureGroup*>(*it)->hasObject(obj, recursive))
return true;
}
}