[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Nov 19 01:19:05 UTC 2020
svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2b433a52c164558b85ec85b6b8ccf6b11776695c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Nov 18 11:22:42 2020 +0000
Commit: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Thu Nov 19 02:18:28 2020 +0100
tdf#137397 Faulty Height value in Position and Size content panel
Change-Id: Ie7439371cb2d216ca1d95f21db44d203cccd9ea8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106001
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 248675f7ee1f..f6f6b242e884 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -1057,9 +1057,9 @@ void PosSizePropertyPanel::SetPosSizeMinMax()
double fMaxWidth = maWorkArea.getWidth() - (maRect.getWidth() - fLeft);
double fMaxHeight = maWorkArea.getHeight() - (maRect.getHeight() - fTop);
- mxMtrWidth->set_max(basegfx::fround64(fMaxWidth*100), FieldUnit::NONE);
+ mxMtrWidth->set_max(std::min<sal_Int64>(INT_MAX, basegfx::fround64(fMaxWidth*100)), FieldUnit::NONE);
limitWidth(*mxMtrWidth);
- mxMtrHeight->set_max(basegfx::fround64(fMaxHeight*100), FieldUnit::NONE);
+ mxMtrHeight->set_max(std::min<sal_Int64>(INT_MAX, basegfx::fround64(fMaxHeight*100)), FieldUnit::NONE);
limitWidth(*mxMtrHeight);
}
More information about the Libreoffice-commits
mailing list