diff options
-rw-r--r-- | editeng/source/editeng/impedit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |