diff options
-rw-r--r-- | sw/source/core/crsr/findtxt.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/crsr/findtxt.cxx b/sw/source/core/crsr/findtxt.cxx index 796da83246f8..5567cfad7b4a 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; |