summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/dlgsnap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-26 12:20:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-26 21:15:43 +0200
commita4d4445e698b78ec0c2eb61a685869bd1d8bfd85 (patch)
tree339b05f94646ec606c7227cfb2fc15a553e92ad8 /sd/source/ui/dlg/dlgsnap.cxx
parent370533da3f07169791c0a17013ca55c57df2f3c9 (diff)
use more TypedWhichId
Change-Id: Iaa7ce9165da835a638bcc1d633bed0a2ff2c4108 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152308 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/dlg/dlgsnap.cxx')
-rw-r--r--sd/source/ui/dlg/dlgsnap.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/dlgsnap.cxx b/sd/source/ui/dlg/dlgsnap.cxx
index 9b1383089218..9f16a5fa5394 100644
--- a/sd/source/ui/dlg/dlgsnap.cxx
+++ b/sd/source/ui/dlg/dlgsnap.cxx
@@ -88,8 +88,8 @@ SdSnapLineDlg::SdSnapLineDlg(weld::Window* pWindow, const SfxItemSet& rInAttrs,
FieldUnit::NONE);
// set values
- nXValue = static_cast<const SfxInt32Item&>( rInAttrs.Get(ATTR_SNAPLINE_X)).GetValue();
- nYValue = static_cast<const SfxInt32Item&>( rInAttrs.Get(ATTR_SNAPLINE_Y)).GetValue();
+ nXValue = rInAttrs.Get(ATTR_SNAPLINE_X).GetValue();
+ nYValue = rInAttrs.Get(ATTR_SNAPLINE_Y).GetValue();
nXValue = sal_Int32(nXValue / aUIScale);
nYValue = sal_Int32(nYValue / aUIScale);
SetMetricValue(*m_xMtrFldX, nXValue, MapUnit::Map100thMM);