Fix delayed painting

- Annotation and Image were not being painted
  immediately, but had to wait for a page
  refresh.
This commit is contained in:
wandererfan
2018-05-16 13:39:03 -04:00
parent 1ff736e282
commit fca8034b18
5 changed files with 10 additions and 14 deletions

View File

@@ -66,6 +66,7 @@ void DrawViewImage::onChanged(const App::Property* prop)
{
if (prop == &ImageFile) {
if (!isRestoring()) {
requestPaint();
}
}
TechDraw::DrawView::onChanged(prop);
@@ -73,6 +74,7 @@ void DrawViewImage::onChanged(const App::Property* prop)
App::DocumentObjectExecReturn *DrawViewImage::execute(void)
{
requestPaint();
return DrawView::execute();
}