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

László Németh laszlo.nemeth at collabora.com
Wed Aug 26 04:28:33 PDT 2015


 i18npool/source/breakiterator/breakiterator_unicode.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit cf4839cfd18bb3c478ee7f039a705e46877e442c
Author: László Németh <laszlo.nemeth at collabora.com>
Date:   Wed Aug 26 13:23:07 2015 +0200

    remove unused calculation for hyphenation
    
    Introduced by the commit 968f4d72a23bb28d097a7694d66f0b866b3b33f0,
    problem found by Stephan Bergmann.
    
    Change-Id: If735185c34a0ba69a5cd753ef76032b1b6a4a0cf

diff --git a/i18npool/source/breakiterator/breakiterator_unicode.cxx b/i18npool/source/breakiterator/breakiterator_unicode.cxx
index 262f06a..53c1916 100644
--- a/i18npool/source/breakiterator/breakiterator_unicode.cxx
+++ b/i18npool/source/breakiterator/breakiterator_unicode.cxx
@@ -393,7 +393,6 @@ LineBreakResults SAL_CALL BreakIterator_Unicode::getLineBreak(
             if (hOptions.hyphenIndex - wBoundary.startPos < nStartPosWordEnd) nStartPosWordEnd = hOptions.hyphenIndex - wBoundary.startPos;
 #define SPACE 0x0020
             while (boundary_with_punctuation > wBoundary.endPos && Text[--boundary_with_punctuation] == SPACE);
-            if (boundary_with_punctuation != 0) boundary_with_punctuation += 1 - wBoundary.endPos;
             uno::Reference< linguistic2::XHyphenatedWord > aHyphenatedWord;
             aHyphenatedWord = hOptions.rHyphenator->hyphenate(Text.copy(wBoundary.startPos,
                         wBoundary.endPos - wBoundary.startPos), rLocale,


More information about the Libreoffice-commits mailing list