Fix in Drawing page object - fixes #1540

* Changing the editable texts updates the page automatically
* Added a doc.recompute() after creating a new page
This commit is contained in:
Yorik van Havre
2014-08-07 10:39:33 -03:00
parent 05884628e6
commit 5a193f0e47
2 changed files with 8 additions and 2 deletions

View File

@@ -76,8 +76,12 @@ void FeaturePage::onChanged(const App::Property* prop)
if (!fi.exists())
return;
}
}
if (prop == &Template) {
} else if (prop == &EditableTexts) {
if (!this->isRestoring()) {
this->execute();
return;
}
} else if (prop == &Template) {
if (!this->isRestoring()) {
EditableTexts.setValues(getEditableTextsFromTemplate());
}