From 7dbc309015606fca1aa1f1561ae166ef719b2234 Mon Sep 17 00:00:00 2001 From: Zolko-123 <46596542+Zolko-123@users.noreply.github.com> Date: Sun, 15 Dec 2019 17:08:27 +0000 Subject: [PATCH] Manual dimension centers the plane's view With the current manual dimensions a Datum Plane is visually ex-centred from it's origin, so when drawing a circle the circle is outside of the Plane representation. With this proposed change the visual representation is centred. --- src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp index d4b1b93545..e8489007ff 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatumPlane.cpp @@ -135,8 +135,8 @@ void ViewProviderDatumPlane::setExtents(double l, double w) { // Change the coordinates of the line pCoords->point.setNum (4); - pCoords->point.set1Value(0, l, w, 0); - pCoords->point.set1Value(1, 0, w, 0); - pCoords->point.set1Value(2, 0, 0, 0); - pCoords->point.set1Value(3, l, 0, 0); + pCoords->point.set1Value(0, l/2, w/2, 0); + pCoords->point.set1Value(1, -l/2, w/2, 0); + pCoords->point.set1Value(2, -l/2, -w/2, 0); + pCoords->point.set1Value(3, l/2, -w/2, 0); }