i18npool/source/characterclassification/cclass_unicode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 8f0ecf253531963144d3d1c9ee5c12a6cda99c4e Author: Caolán McNamara <caol...@redhat.com> Date: Tue Oct 29 11:20:19 2013 +0000 lets be super sure in the face of falling between surrogates Change-Id: I6d8259df3d4f2e73f9236b7c0547f87c89801082 diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx index 5655059..a729ca8 100644 --- a/i18npool/source/characterclassification/cclass_unicode.cxx +++ b/i18npool/source/characterclassification/cclass_unicode.cxx @@ -205,7 +205,7 @@ cclass_Unicode::getStringType( const OUString& Text, sal_Int32 nPos, sal_Int32 n sal_Int32 result = 0; - while (nCount && nPos < Text.getLength()) + while (nCount > 0 && nPos < Text.getLength()) { sal_Int32 nOrigPos = nPos; result |= getCharType(Text, &nPos, 1);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits