summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-07 20:14:15 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-08 20:51:33 +0200
commitf050103c3324d878b310f37429ea3580a8230905 (patch)
tree19fd711b328e779d7d88de99ba5e4f252034e064
parentc988d9e5cbb7bc6795d9555e86acb3543e66b863 (diff)
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 <caolan.mcnamara@collabora.com> Tested-by: Jenkins
-rw-r--r--sw/source/core/text/guess.cxx1
1 files changed, 1 insertions, 0 deletions
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
{