editeng/source/editeng/impedit.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 2cd2ea6cc012f1096494b4198cfbb3ea56859157 Author: Michael Stahl <[email protected]> AuthorDate: Mon Jun 23 13:03:44 2025 +0200 Commit: Michael Stahl <[email protected]> CommitDate: Mon Jun 23 15:05:38 2025 +0200 tdf#166602 editeng: fix painting cursor in vertical text The size is relative to the top right. (regression from commit 34cf82953ccd260a05a1c3838178ba50314e2eef) Change-Id: Id0e63e40c580a4b700cc09b476bd8bc9f60aa368 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186823 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Jenkins diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index 6288c594e4e1..743fb87bdded 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1306,6 +1306,8 @@ ImpEditView::ImplGetCursorRectAndMaybeScroll(EditPaM const& rPos, Size aOldSz( aCursorSz ); aCursorSz.setWidth( aOldSz.Height() ); aCursorSz.setHeight( aOldSz.Width() ); + // tdf#166602 the size is relative to the top right + aCursorRect.AdjustLeft(aCursorRect.GetWidth() - aCursorSz.Width()); } aCursorRect.SetSize(aCursorSz); return {{aCursorRect, aEditCursor, aShowCursorFlags, nTextPortionStart}};
