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

Stephan Bergmann sbergman at redhat.com
Tue Jun 18 07:10:06 PDT 2013


 writerfilter/source/dmapper/DomainMapper.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 0e1c9b0a47fb45e4439e55cb48a6dd7024218dc9
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jun 18 16:09:40 2013 +0200

    -Werror=maybe-uninitialized
    
    Change-Id: Ic2011b6c3db44d12c0dc883019d2d532bbda467b

diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 0d14f8d..c371c9a 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1513,8 +1513,7 @@ static bool ExchangeLeftRight( const PropertyMapPtr rContext )
     if( aPropParaIte != rContext->end())
     {
         sal_Int32 aAdjust ;
-        aPropParaIte->second >>= aAdjust;
-        if( aAdjust == text::WritingMode2::RL_TB )
+        if( (aPropParaIte->second >>= aAdjust) && aAdjust == text::WritingMode2::RL_TB )
             bExchangeLeftRight = true;
     }
     return bExchangeLeftRight;


More information about the Libreoffice-commits mailing list