Fix delayed painting
- Annotation and Image were not being painted immediately, but had to wait for a page refresh.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user