[TD]remove highlight on deletion of detail

This commit is contained in:
wandererfan
2020-03-25 18:22:10 -04:00
committed by WandererFan
parent 14e6b19e75
commit 13661ddf21
3 changed files with 21 additions and 7 deletions

View File

@@ -934,7 +934,9 @@ std::vector<DrawViewDetail*> DrawViewPart::getDetailRefs(void) const
std::vector<App::DocumentObject*> inObjs = getInList();
for (auto& o:inObjs) {
if (o->getTypeId().isDerivedFrom(DrawViewDetail::getClassTypeId())) {
result.push_back(static_cast<TechDraw::DrawViewDetail*>(o));
if (!o->isRemoving()) {
result.push_back(static_cast<TechDraw::DrawViewDetail*>(o));
}
}
}
return result;