[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Wed Nov 6 15:39:53 CET 2013
sw/source/filter/ww8/ww8par5.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 3aa58661aab928548c73a61cf450c010cd2b44dc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Nov 6 14:37:28 2013 +0000
fix wrong test for end of field
regression since 2564c5bbe4acd3f29530b056cef3f6e8ecb6194c
Change-Id: I40741875e873d64a682468616700d25904302878
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index e949d35..837bf7b 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -3615,7 +3615,8 @@ void SwWW8ImplReader::Read_FldVanish( sal_uInt16, const sal_uInt8*, short nLen )
for (;;)
{
nFnd = sFieldName.indexOf(0x15);
- if (nFnd<0)
+ //found field end, we can stop now
+ if (nFnd != -1)
break;
OUString sTemp;
nFieldLen = pSBase->WW8ReadString( *pStrm, sTemp,
More information about the Libreoffice-commits
mailing list