svx/source/sidebar/possize/PosSizePropertyPanel.cxx |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit a573829438bf4a3dc43e8774bfe4e29989e2e352
Author:     Gabor Kelemen <kelemen.gab...@nisz.hu>
AuthorDate: Tue Nov 26 22:50:25 2019 +0100
Commit:     Katarina Behrens <katarina.behr...@cib.de>
CommitDate: Wed Nov 27 12:09:57 2019 +0100

    tdf#111922 Fix Position&Size sidebar Height/Width order of magnitude
    
    Change-Id: Ib279199cdca58911b989a146d60ce764742e5008
    Reviewed-on: https://gerrit.libreoffice.org/83843
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <katarina.behr...@cib.de>

diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx 
b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index b7649bd7e0ea..25127882e620 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -1069,12 +1069,12 @@ void PosSizePropertyPanel::SetPosSizeMinMax()
     mpMtrPosY->SetMax(basegfx::fround64(fBottom));
     mpMtrPosY->SetLast(basegfx::fround64(fBottom));
 
-    double fMaxWidth = maWorkArea.getWidth() - (maRect.getMinX() - fLeft);
-    double fMaxHeight = maWorkArea.getHeight() - (maRect.getMinY() - fTop);
-    mpMtrWidth->SetMax(basegfx::fround64(fMaxWidth));
-    mpMtrWidth->SetLast(basegfx::fround64(fMaxWidth));
-    mpMtrHeight->SetMax(basegfx::fround64(fMaxHeight));
-    mpMtrHeight->SetLast(basegfx::fround64(fMaxHeight));
+    double fMaxWidth = maWorkArea.getWidth() - (maRect.getWidth() - fLeft);
+    double fMaxHeight = maWorkArea.getHeight() - (maRect.getHeight() - fTop);
+    mpMtrWidth->SetMax(basegfx::fround64(fMaxWidth*100));
+    mpMtrWidth->SetLast(basegfx::fround64(fMaxWidth*100));
+    mpMtrHeight->SetMax(basegfx::fround64(fMaxHeight*100));
+    mpMtrHeight->SetLast(basegfx::fround64(fMaxHeight*100));
 }
 
 void PosSizePropertyPanel::UpdateUIScale()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to