fix CIDs 151701, 151747

This commit is contained in:
wmayer
2016-12-18 13:46:26 +01:00
parent 07a180b18f
commit 48a1860e97
2 changed files with 3 additions and 4 deletions

View File

@@ -154,7 +154,6 @@ short DrawPage::mustExecute() const
// Check if within this Page, any Views have been touched
// Why does Page have to execute if a View changes?
bool ViewsTouched = false;
const std::vector<App::DocumentObject*> &vals = Views.getValues();
for(std::vector<App::DocumentObject *>::const_iterator it = vals.begin(); it < vals.end(); ++it) {
if((*it)->isTouched()) {
@@ -162,7 +161,7 @@ short DrawPage::mustExecute() const
}
}
return (ViewsTouched) ? 1 : App::DocumentObject::mustExecute();
return App::DocumentObject::mustExecute();
}
PyObject *DrawPage::getPyObject(void)