summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/linewidthctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/linewidthctrl.cxx')
-rw-r--r--svx/source/tbxctrls/linewidthctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/tbxctrls/linewidthctrl.cxx b/svx/source/tbxctrls/linewidthctrl.cxx
index 166f4bb451c9..a28c11cbd1c8 100644
--- a/svx/source/tbxctrls/linewidthctrl.cxx
+++ b/svx/source/tbxctrls/linewidthctrl.cxx
@@ -86,7 +86,7 @@ MapUnit SvxLineWidthToolBoxControl::GetCoreMetric()
{
SfxObjectShell* pSh = SfxObjectShell::Current();
SfxItemPool& rPool = pSh ? pSh->GetPool() : SfxGetpApp()->GetPool();
- sal_uInt16 nWhich = rPool.GetWhich(SID_ATTR_LINE_WIDTH);
+ sal_uInt16 nWhich = rPool.GetWhichIDFromSlotID(SID_ATTR_LINE_WIDTH);
return rPool.GetMetric(nWhich);
}