diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-10-20 14:06:32 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-21 18:21:38 +0200 |
commit | b9d06c893df399e16572381d086db42be12186eb (patch) | |
tree | 80b3a01b09e2dd50e6dab12abadea2dc2c308d1e /editeng | |
parent | 360f389e68a44a8dae896a9ccbdb20b9636a0041 (diff) |
tdf#120703 (PVS): Recurring check.
V571 This condition was already verified in line 224.
Change-Id: I75a29c49c82c78d3afd1c900743b42af93817f84
Reviewed-on: https://gerrit.libreoffice.org/62046
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/uno/unoipset.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx index 456ac6358115..1f84b114a810 100644 --- a/editeng/source/uno/unoipset.cxx +++ b/editeng/source/uno/unoipset.cxx @@ -221,13 +221,10 @@ uno::Any SvxItemPropertySet::getPropertyValue( const SfxItemPropertySimpleEntry* } } - if( pMap->nMoreFlags & PropertyMoreFlags::METRIC_ITEM ) + // check for needed metric translation + if(pMap->nMoreFlags & PropertyMoreFlags::METRIC_ITEM && eMapUnit != MapUnit::Map100thMM) { - // check for needed metric translation - if(pMap->nMoreFlags & PropertyMoreFlags::METRIC_ITEM && eMapUnit != MapUnit::Map100thMM) - { - SvxUnoConvertToMM( eMapUnit, aVal ); - } + SvxUnoConvertToMM( eMapUnit, aVal ); } if ( pMap->aType.getTypeClass() == uno::TypeClass_ENUM && |