Fix issue 53 Drawing templates

This commit is contained in:
WandererFan
2016-06-04 18:11:51 -04:00
committed by wmayer
parent eeaa39f270
commit 44f3a1a21e
17 changed files with 2298 additions and 20 deletions

View File

@@ -130,13 +130,9 @@ void DrawSVGTemplate::onChanged(const App::Property* prop)
execute();
// Update the parent page if exists
std::vector<App::DocumentObject*> parent = getInList();
for (std::vector<App::DocumentObject*>::iterator it = parent.begin(); it != parent.end(); ++it) {
if ((*it)->getTypeId().isDerivedFrom(DrawPage::getClassTypeId())) {
TechDraw::DrawPage *page = static_cast<TechDraw::DrawPage *>(*it);
page->touch();
}
}
TechDraw::DrawPage *page = getParentPage();
if (page)
page->touch();
}
TechDraw::DrawTemplate::onChanged(prop);