diff options
-rw-r--r-- | sfx2/source/appl/module.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 0590b0addc73..1eefa3f9f6a1 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -375,9 +375,7 @@ FieldUnit SfxModule::GetModuleFieldUnit( ::com::sun::star::uno::Reference< ::com // find the module SfxModule const * pModule = GetActiveModule( pViewFrame ); ENSURE_OR_RETURN( pModule != NULL, "SfxModule::GetModuleFieldUnit: no SfxModule for the given frame!", FUNIT_100TH_MM ); - if ( pModule ) - return pModule->GetFieldUnit(); - return FUNIT_INCH; + return pModule->GetFieldUnit(); } FieldUnit SfxModule::GetCurrentFieldUnit() |