editeng/source/editeng/impedit2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0afe740800a5a2a4bc2041fa602b11dc31a4a4e1 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Mar 28 14:41:32 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Mar 28 16:29:13 2025 +0100 tdf#165811 calc mouse select sometimes off by one char regression from commit 11b15571475414ef853e21a6c96afa2ac81f848f Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Wed Oct 30 09:51:26 2024 +0200 convert KernArray from sal_Int32 to double Change-Id: I9266693fa8d449c3369b65c31fbb4a3d3182777f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183452 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index df966ba85c3e..5a232360e2be 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -4109,7 +4109,7 @@ sal_Int32 ImpEditEngine::GetChar(ParaPortion const& rParaPortion, EditLine const // they belong to the same character, we can not use this position as an index. // Skip all 0-positions, cheaper than using XBreakIterator: tools::Long nX = rLine.GetCharPosArray()[nTmpCurIndex + x]; - while(x < nMax && rLine.GetCharPosArray()[nTmpCurIndex + x] == nX) + while(x < nMax && static_cast<tools::Long>(rLine.GetCharPosArray()[nTmpCurIndex + x]) == nX) ++x; } nOffset = x;