sw/source/core/text/guess.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 3e88fa3cffe7eb5008f9fe7ff8fc9cbf15ce2b97 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Jun 7 20:14:15 2024 +0100 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Sun Jun 9 14:39:39 2024 +0200
stale hyphenation data after skipping blanks what I see is that after skipping blanks that the m_xHyphWord remains describing the word at the original m_nBreakStart, but we have changed that m_nBreakStart and m_nBreakStart is now at the next word, so the contents of m_xHyphWord bear no relationship to the current break position. Change-Id: I07c91495f0cd7ef6d78c0f0d5cef70070ebb6ff2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168564 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx index c3a94187a7ea..c199bbfcfa97 100644 --- a/sw/source/core/text/guess.cxx +++ b/sw/source/core/text/guess.cxx @@ -443,6 +443,7 @@ bool SwTextGuess::Guess( const SwTextPortion& rPor, SwTextFormatInfo &rInf, { m_nCutPos = m_nBreakStart = AdjustCutPos(m_nCutPos, m_nBreakPos, rInf); nPorLen = m_nBreakPos - rInf.GetIdx(); + m_xHyphWord = nullptr; } else {