[TD] Detail view - add missing update

- now changes of the BaseView and to the anchor coordinates are directly shown
This commit is contained in:
donovaly
2020-03-25 23:39:32 +01:00
committed by WandererFan
parent 3318ddeac9
commit be694170a5

View File

@@ -147,13 +147,15 @@ void DrawViewDetail::onChanged(const App::Property* prop)
std::string(Reference.getValue());
Label.setValue(lblText);
}
if ((prop == &Reference) ||
(prop == &Radius) ||
(prop == &AnchorPoint)) {
// BaseView.getValue()->touch(); //hack. sb "update graphics"
enforceRecompute();
if ((prop == &Reference) ||
(prop == &Radius) ||
(prop == &BaseView)) {
requestPaint();
}
if (prop == &AnchorPoint) {
// to see AnchorPoint changes repainting is not enough, we must recompute
recomputeFeature(true);
}
}
DrawView::onChanged(prop);
}