[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - sw/source

Caolán McNamara caolanm at redhat.com
Thu Apr 6 19:06:49 UTC 2017


 sw/source/filter/ww8/ww8par6.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c759d327f46770e40e6fa0b7c5740adb4102e683
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 6 15:12:10 2017 +0100

    ofz: treat short properties as run end
    
    Change-Id: I00a5bab63663e2dde43825707e84568fca6aa594
    Reviewed-on: https://gerrit.libreoffice.org/36218
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 0a8e60c4ed0b..838772bb5513 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -3778,7 +3778,7 @@ void SwWW8ImplReader::Read_Language( sal_uInt16 nId, const sal_uInt8* pData, sho
             return;
     }
 
-    if( nLen < 0 )                  // end of attribute
+    if (nLen < 2)                  // end of attribute
         m_pCtrlStck->SetAttr( *m_pPaM->GetPoint(), nId );
     else
     {


More information about the Libreoffice-commits mailing list