Fix handling of Scale change in DrawViewSymbol classes

This commit is contained in:
WandererFan
2017-08-28 19:43:42 -04:00
committed by wmayer
parent 9e6248acc9
commit 3e21b97867
4 changed files with 21 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ void DrawViewSymbol::onChanged(const App::Property* prop)
tbegin = twhat[0].second;
}
EditableTexts.setValues(eds);
requestPaint();
}
}
}
@@ -119,6 +120,7 @@ App::DocumentObjectExecReturn *DrawViewSymbol::execute(void)
}
Symbol.setValue(newsvg);
requestPaint();
return DrawView::execute();
}
@@ -160,6 +162,20 @@ bool DrawViewSymbol::checkFit(TechDraw::DrawPage* p) const
return result;
}
short DrawViewSymbol::mustExecute() const
{
short result = 0;
if (!isRestoring()) {
result = (Scale.isTouched() ||
EditableTexts.isTouched());
}
if ((bool) result) {
return result;
}
return DrawView::mustExecute();
}
PyObject *DrawViewSymbol::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {