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 09f607c5fc
commit afdd30b137
5 changed files with 10 additions and 14 deletions

View File

@@ -89,14 +89,9 @@ void DrawViewAnnotation::onChanged(const App::Property* prop)
prop == &TextColor ||
prop == &TextSize ||
prop == &LineSpace ||
prop == &TextStyle || //changing this doesn't recompute until focus changes??
prop == &TextStyle ||
prop == &MaxWidth) {
try {
App::DocumentObjectExecReturn *ret = recompute();
delete ret;
}
catch (...) {
}
requestPaint();
}
}
TechDraw::DrawView::onChanged(prop);