diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-13 09:08:54 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-13 12:38:23 +0100 |
commit | 81af0617bd5c034eaff5ec6f2eba0cabd8ad966e (patch) | |
tree | 2092b8f29db3c72d59221d7f3f3f618f43c49cd2 /sd | |
parent | 7f6a5b433988e80f7d404c67d6320116ecb28c06 (diff) |
can use set_range
Change-Id: I81fdc1d3f2142e3ce47fba36281f8674c67ba0a4
Reviewed-on: https://gerrit.libreoffice.org/67759
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/dlgsnap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx index 43f38c37cfac..2a579ef812f8 100644 --- a/sd/source/ui/dlg/dlgsnap.cxx +++ b/sd/source/ui/dlg/dlgsnap.cxx @@ -78,10 +78,10 @@ SdSnapLineDlg::SdSnapLineDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs, auto const n4 = msb->convert_value_to(n3, FieldUnit::NONE); return n4; }; - m_xMtrFldX->set_min(map(m_xMtrFldX, aLeftTop.X()), FieldUnit::NONE); - m_xMtrFldX->set_max(map(m_xMtrFldX, aRightBottom.X()), FieldUnit::NONE); - m_xMtrFldY->set_min(map(m_xMtrFldY, aLeftTop.Y()), FieldUnit::NONE); - m_xMtrFldY->set_max(map(m_xMtrFldY, aRightBottom.Y()), FieldUnit::NONE); + m_xMtrFldX->set_range(map(m_xMtrFldX, aLeftTop.X()), map(m_xMtrFldX, aRightBottom.X()), + FieldUnit::NONE); + m_xMtrFldY->set_range(map(m_xMtrFldY, aLeftTop.Y()), map(m_xMtrFldY, aRightBottom.Y()), + FieldUnit::NONE); // set values nXValue = static_cast<const SfxInt32Item&>( rInAttrs.Get(ATTR_SNAPLINE_X)).GetValue(); |