Fix page alignment when change to different Template

This commit is contained in:
WandererFan
2017-09-03 19:42:25 -04:00
committed by wmayer
parent 8e2e70c76e
commit fc6f8a91ce
2 changed files with 15 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ void DrawPage::onChanged(const App::Property* prop)
} else if (prop == &Template) {
if (!isRestoring() &&
!isDeleting()) {
Template.getValue()->touch();
//nothing to page to do??
}
} else if(prop == &Scale) {
// touch all views in the Page as they may be dependent on this scale
@@ -248,8 +248,6 @@ int DrawPage::addView(App::DocumentObject *docObj)
if(!docObj->isDerivedFrom(TechDraw::DrawView::getClassTypeId()))
return -1;
DrawView* view = static_cast<DrawView*>(docObj);
//TODO: replace list of views with PropertyLink to Page in subordinate DrawView
// view->Page.setValue(this);
//position all new views in center of Page (exceptDVDimension)
if (!docObj->isDerivedFrom(TechDraw::DrawViewDimension::getClassTypeId())) {