diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-30 14:15:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-31 11:38:47 +0200 |
commit | 65803ad94c8652edb84f82202717b1b206407a65 (patch) | |
tree | c9de76166e6b7ce9f336edf7c927a30eca0977e6 /sw/source/uibase/app/swmodul1.cxx | |
parent | 62da1a834128f5762fa2e6ceb35fa61372ed5949 (diff) |
fix some dodgy FieldUnit conversions
the FieldUnit enum was being converted in some dodgy ways and
in some places the MapUnit enum values were being used.
Change-Id: Ic9aacb84058d1c14c3a4a79ef6676082df9a7270
Diffstat (limited to 'sw/source/uibase/app/swmodul1.cxx')
-rw-r--r-- | sw/source/uibase/app/swmodul1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/app/swmodul1.cxx b/sw/source/uibase/app/swmodul1.cxx index dcdfc0101625..db6e4596d090 100644 --- a/sw/source/uibase/app/swmodul1.cxx +++ b/sw/source/uibase/app/swmodul1.cxx @@ -557,7 +557,7 @@ OUString SwModule::GetDocStatWordDelim() const } // Passing-through of the ModuleConfig's Metric (for HTML-Export) -sal_uInt16 SwModule::GetMetric( bool bWeb ) const +FieldUnit SwModule::GetMetric( bool bWeb ) const { SwMasterUsrPref* pPref; if(bWeb) @@ -572,7 +572,7 @@ sal_uInt16 SwModule::GetMetric( bool bWeb ) const GetUsrPref(false); pPref = pUsrPref; } - return static_cast< sal_uInt16 >(pPref->GetMetric()); + return pPref->GetMetric(); } // Pass-through Update-Status |