summaryrefslogtreecommitdiff
path: root/sd/source/ui/inc
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-12-10 18:44:22 +0100
committerMathias Bauer <mba@openoffice.org>2009-12-10 18:44:22 +0100
commit6495925b72788d045dfaa76476e407f9d23c0ea3 (patch)
treedabd6c0db23d82abf274ce32405984126da4d70b /sd/source/ui/inc
parenta2d9f29364b4fac5215f9f1fc1debd07921b3d86 (diff)
#i107450#: split up the two different ways to detect a module field unit
Diffstat (limited to 'sd/source/ui/inc')
-rw-r--r--sd/source/ui/inc/optsitem.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx
index a69381d784df..8b87133f5583 100644
--- a/sd/source/ui/inc/optsitem.hxx
+++ b/sd/source/ui/inc/optsitem.hxx
@@ -174,7 +174,7 @@ public:
BOOL IsDragStripes() const { Init(); return (BOOL) bDragStripes; }
BOOL IsHandlesBezier() const { Init(); return (BOOL) bHandlesBezier; }
BOOL IsHelplines() const { Init(); return (BOOL) bHelplines; }
- UINT16 GetMetric() const { Init(); return( ( 0xffff == nMetric ) ? (UINT16)GetModuleFieldUnit() : nMetric ); }
+ UINT16 GetMetric() const { Init(); return( ( 0xffff == nMetric ) ? (UINT16)SfxModule::GetActiveModule()->GetModuleFieldUnit() : nMetric ); }
UINT16 GetDefTab() const { Init(); return nDefTab; }
void SetRulerVisible( BOOL bOn = TRUE ) { if( bRuler != bOn ) { OptionsChanged(); bRuler = bOn; } }