editeng/source/editeng/impedit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1a6642319631e50c83564de453298930e1f5b17a Author: Dennis Francis <[email protected]> AuthorDate: Fri Jun 5 18:10:12 2020 +0530 Commit: Dennis Francis <[email protected]> CommitDate: Mon Jul 6 17:45:21 2020 +0200 scPrintTwipsMsgs: Use top-left of output-area as the refpoint We can't use the transformed version of editeng origin, since it need not be in client view area depending on text alignment, which is unusable as far as the clients are concerned. Top-left corner of output-area is always guaranteed to be in client view area independent of text-alignment settings. Change-Id: I5bd20d2b52e146371de4b605bf7934b7e7d6fc5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98067 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Dennis Francis <[email protected]> diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx index ed2c8d43bf9c..8f4be0685c0c 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1281,7 +1281,7 @@ void ImpEditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor ) // Get rectangle in window-coordinates from editeng(doc) coordinates. aCursorRectPureLogical = mpLOKSpecialPositioning->GetWindowPos(aCursorRectPureLogical, eDevUnit); // Lets use the editeng(doc) origin as the refpoint. - const Point aCursorOrigin = mpLOKSpecialPositioning->GetWindowPos(Point(0, 0), eDevUnit); + const Point aCursorOrigin = mpLOKSpecialPositioning->GetOutputArea().TopLeft(); // Get the relative coordinates w.r.t aCursorOrigin. aCursorRectPureLogical.Move(-aCursorOrigin.X(), -aCursorOrigin.Y()); aMessageParams.put("relrect", aCursorRectPureLogical.toString()); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
