From be694170a550e09eac2792562fa66b1508f37c1a Mon Sep 17 00:00:00 2001 From: donovaly Date: Wed, 25 Mar 2020 23:39:32 +0100 Subject: [PATCH] [TD] Detail view - add missing update - now changes of the BaseView and to the anchor coordinates are directly shown --- src/Mod/TechDraw/App/DrawViewDetail.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Mod/TechDraw/App/DrawViewDetail.cpp b/src/Mod/TechDraw/App/DrawViewDetail.cpp index 10951d896a..832da7e7bf 100644 --- a/src/Mod/TechDraw/App/DrawViewDetail.cpp +++ b/src/Mod/TechDraw/App/DrawViewDetail.cpp @@ -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); }