sw/source/core/text/guess.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit f050103c3324d878b310f37429ea3580a8230905
Author: Caolán McNamara <[email protected]>
AuthorDate: Fri Jun 7 20:14:15 2024 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Sat Jun 8 20:51:33 2024 +0200
stale hyphenation data after skipping blanks
what I see is that after skipping the blanks that the m_xHyphWord
remains describing the word at the original m_nBreakStart, but we have
changed that m_nBreakStart and in the example I have the m_nBreakStart
is 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/+/168561
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Jenkins
diff --git a/sw/source/core/text/guess.cxx b/sw/source/core/text/guess.cxx
index ad95c41fd39d..c476de7110cc 100644
--- a/sw/source/core/text/guess.cxx
+++ b/sw/source/core/text/guess.cxx
@@ -474,6 +474,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
{