[Libreoffice-commits] core.git: cui/source

Caolán McNamara caolanm at redhat.com
Thu Oct 10 09:17:09 PDT 2013


 cui/source/dialogs/hyphen.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 463ba7b4d347c6fa0bcd1f01a49a18c7470a4ea0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Oct 10 17:16:18 2013 +0100

    CID#1103727 the intent is surely to compare nPos, nStart cannot be -1
    
    Change-Id: I27a6622f45ec3fdbb9153e1dcb1114c5dc71e884

diff --git a/cui/source/dialogs/hyphen.cxx b/cui/source/dialogs/hyphen.cxx
index 6bddeb3..fffb3fc 100644
--- a/cui/source/dialogs/hyphen.cxx
+++ b/cui/source/dialogs/hyphen.cxx
@@ -164,7 +164,7 @@ OUString SvxHyphenWordDialog::EraseUnusableHyphens_Impl(
                     // find corresponding hyphen pos in string
                     nPos = aTxt.indexOf( sal_Unicode( HYPH_POS_CHAR ), nStart );
 
-                    if (nStart == -1)
+                    if (nPos == -1)
                         break;
                     else
                     {


More information about the Libreoffice-commits mailing list