diff --git a/src/Mod/TechDraw/App/DrawViewPart.cpp b/src/Mod/TechDraw/App/DrawViewPart.cpp index ea096a61d47f..d22fac572d19 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.cpp +++ b/src/Mod/TechDraw/App/DrawViewPart.cpp @@ -622,14 +622,11 @@ void DrawViewPart::extractFaces() std::vector DrawViewPart::getHatches() const { -// Base::Console().Message("DVP::getHatches()\n"); std::vector result; std::vector children = getInList(); for (std::vector::iterator it = children.begin(); it != children.end(); ++it) { - if ((*it)->isRemoving()) { - continue; - } - if ((*it)->getTypeId().isDerivedFrom(DrawHatch::getClassTypeId())) { + if ( ((*it)->getTypeId().isDerivedFrom(DrawHatch::getClassTypeId())) && + (!(*it)->isRemoving()) ) { TechDraw::DrawHatch* hatch = dynamic_cast(*it); result.push_back(hatch); } @@ -642,7 +639,7 @@ std::vector DrawViewPart::getGeomHatches() const std::vector result; std::vector children = getInList(); for (std::vector::iterator it = children.begin(); it != children.end(); ++it) { - if ( ((*it)->getTypeId().isDerivedFrom(DrawGeomHatch::getClassTypeId())) && + if ( ((*it)->getTypeId().isDerivedFrom(DrawGeomHatch::getClassTypeId())) && (!(*it)->isRemoving()) ) { TechDraw::DrawGeomHatch* geom = dynamic_cast(*it); result.push_back(geom);