summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorGabor Kelemen <kelemen.gabor2@nisz.hu>2019-11-26 22:50:25 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-12-17 13:58:09 +0100
commit261fef18ecef98bbe05de7422b6552f42b77176d (patch)
tree7439de6b5e9799b0a4634fa310ea796708d21869 /svx
parent65eed7dec08f7ae35906a329e8011a40e194399e (diff)
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.Behrens@cib.de> (cherry picked from commit a573829438bf4a3dc43e8774bfe4e29989e2e352) Reviewed-on: https://gerrit.libreoffice.org/83980 Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit baa365141e8b3c619c7de0b01612ffe0cc3885c7) Reviewed-on: https://gerrit.libreoffice.org/85236 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 3e1c81430d32..c755e3daf9c5 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()