[TD] add missing repaints for DrawView

- this enables to see e.g. changes of the rotation of all kinds of views directly

- also fix a bug, see https://forum.freecadweb.org/viewtopic.php?f=35&t=44571
This commit is contained in:
donovaly
2020-03-26 01:40:46 +01:00
committed by WandererFan
parent be694170a5
commit 8c45bef57c
2 changed files with 14 additions and 5 deletions

View File

@@ -144,6 +144,15 @@ void DrawView::onChanged(const App::Property* prop)
handleXYLock();
LockPosition.purgeTouched();
}
if ((prop == &Caption) ||
(prop == &Label)) {
requestPaint();
} // rotation and scaling requires recompute
else if ((prop == &Rotation) ||
(prop == &Scale) ||
(prop == &ScaleType)) {
recompute();
}
}
App::DocumentObject::onChanged(prop);
}