diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 15:02:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-21 17:05:25 +0000 |
commit | bda662488c3aaf93002594adbb833cb7d3c3d83e (patch) | |
tree | 48a4d5c8d83ad149b89aaeadda8a2a6b397caa26 | |
parent | 56859198c2e49aa465c49bbfc5a18bfaef056202 (diff) |
coverity#1399015 Logically dead code
Change-Id: I4d5e2c7d2bbd4eba3eeb790d51a4a93c7ef40577
-rw-r--r-- | cui/source/tabpages/swpossizetabpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/swpossizetabpage.cxx b/cui/source/tabpages/swpossizetabpage.cxx index 37324f46c139..4810f814f710 100644 --- a/cui/source/tabpages/swpossizetabpage.cxx +++ b/cui/source/tabpages/swpossizetabpage.cxx @@ -1037,7 +1037,7 @@ void SvxSwPosSizeTabPage::Reset( const SfxItemSet* rSet) pItem = GetItem( *rSet, SID_ATTR_TRANSFORM_HEIGHT ); sal_Int32 nHeight = std::max( pItem ? ( static_cast<const SfxUInt32Item*>(pItem)->GetValue()) : 0, (sal_uInt32)1 ); m_pHeightMF->SetValue(m_pHeightMF->Normalize(nHeight), FUNIT_TWIP); - m_fWidthHeightRatio = nHeight ? double(nWidth) / double(nHeight) : 1.0; + m_fWidthHeightRatio = double(nWidth) / double(nHeight); if(!m_bPositioningDisabled) { |