summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-21 15:02:23 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-21 17:05:25 +0000
commitbda662488c3aaf93002594adbb833cb7d3c3d83e (patch)
tree48a4d5c8d83ad149b89aaeadda8a2a6b397caa26 /cui
parentcoverity#1399014 Unchecked return value (diff)
downloadcore-bda662488c3aaf93002594adbb833cb7d3c3d83e.tar.gz
core-bda662488c3aaf93002594adbb833cb7d3c3d83e.zip
coverity#1399015 Logically dead code
Change-Id: I4d5e2c7d2bbd4eba3eeb790d51a4a93c7ef40577
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/swpossizetabpage.cxx2
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)
{