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

Michael Stahl mstahl at redhat.com
Fri Jan 17 14:24:59 PST 2014


 sw/source/core/crsr/findtxt.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 156a0235bd8ff06840cecad1e70a57ffc5b8e7e1
Author: Michael Stahl <mstahl at redhat.com>
Date:   Fri Jan 17 23:09:50 2014 +0100

    fdo#73660: sw: fix Find of words containing soft-hyphen
    
    Soft hyphen was not detected if there is no hint (-1).
    
    (regression from ebeff3f074dd94dce4ce6cc55abd0495103684bd)
    
    Change-Id: I09108796a32429a01eff93f797a6de521ab1d08a

diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx
index b3ca32c..135a260 100644
--- a/sw/source/core/crsr/findtxt.cxx
+++ b/sw/source/core/crsr/findtxt.cxx
@@ -89,7 +89,9 @@ lcl_CleanStr(const SwTxtNode& rNd, sal_Int32 const nStart, sal_Int32& rEnd,
             bNewHint = true;
         }
         // Check if next stop is a soft hyphen.
-        else if (-1 != nSoftHyphen && nSoftHyphen < nHintStart && nSoftHyphen < nEnd)
+        else if (   -1 != nSoftHyphen
+                 && (-1 == nHintStart || nSoftHyphen < nHintStart)
+                 && nSoftHyphen < nEnd)
         {
             nStt = nSoftHyphen;
             bNewSoftHyphen = true;


More information about the Libreoffice-commits mailing list