sw/source/filter/ww8/ww8par5.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 3aa58661aab928548c73a61cf450c010cd2b44dc Author: Caolán McNamara <caol...@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,
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits