summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-06 15:12:10 +0100
committerAndras Timar <andras.timar@collabora.com>2017-04-07 07:53:10 +0200
commita7e3104ab320bd60ac4f4bf991f252423fe6fc43 (patch)
tree1fa272e94b5ea4883fd0601eb214969d56ee40f8 /sw
parentd16fff201bbbf6677556ae1196295b2a0f111983 (diff)
ofz: treat short properties as run end
Change-Id: I00a5bab63663e2dde43825707e84568fca6aa594 Reviewed-on: https://gerrit.libreoffice.org/36216 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit fedd27b758db58bfc0e283a03e3fbf7d7fb6090c)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par6.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index d1f9e76ba051..1e5b5bf55305 100644
--- a/sw/source/filter/ww8/ww8par6.cxx
+++ b/sw/source/filter/ww8/ww8par6.cxx
@@ -3827,7 +3827,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
{