tdf#132093: Take aUIScale into account again

...which had inadvertently gone missing with
bbab991c70 "Avoid
-fsanitize=implicit-signed-integer-truncation in weld::MetricSpinButton"

Change-Id: Idaccb7d1d088f1a3183f19deb3d8ca413d8b1440
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96470
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2020-06-16 17:10:19 +02:00
parent fe041bbc34
commit 5e3ac49719

View file

@ -81,9 +81,11 @@ SdSnapLineDlg::SdSnapLineDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs,
auto const n4 = msb->convert_value_to(n3, FieldUnit::NONE);
return n4;
};
m_xMtrFldX->set_range(map(m_xMtrFldX, aLeftTop.X()), map(m_xMtrFldX, aRightBottom.X()),
m_xMtrFldX->set_range(map(m_xMtrFldX, sal_Int32(aLeftTop.X() / aUIScale)),
map(m_xMtrFldX, sal_Int32(aRightBottom.X() / aUIScale)),
FieldUnit::NONE);
m_xMtrFldY->set_range(map(m_xMtrFldY, aLeftTop.Y()), map(m_xMtrFldY, aRightBottom.Y()),
m_xMtrFldY->set_range(map(m_xMtrFldY, sal_Int32(aLeftTop.Y() / aUIScale)),
map(m_xMtrFldY, sal_Int32(aRightBottom.Y() / aUIScale)),
FieldUnit::NONE);
// set values