[Libreoffice-commits] core.git: editeng/source

Caolán McNamara caolanm at redhat.com
Wed Apr 16 12:21:30 PDT 2014


 editeng/source/items/textitem.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 64b040866df60d3e89dcda17b63a1fffdac5e9df
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 16 16:49:22 2014 +0100

    coverity#735422 Logically dead code
    
    Change-Id: I8e1694c311e1e29dc5ea59b292c6afe90fb762fa

diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index b976712..8b3e357 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -873,8 +873,7 @@ bool SvxFontHeightItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
             // CONVERT_TWIPS is not set.
             if( bConvert )
             {
-                long nTwips = bConvert ? nHeight : convertMm100ToTwip(nHeight);
-                rVal <<= (float)( nTwips / 20.0 );
+                rVal <<= (float)( nHeight / 20.0 );
             }
             else
             {


More information about the Libreoffice-commits mailing list