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 43165fefc1a0..e235d4eb74a4 100644 --- a/editeng/source/editeng/impedit.cxx +++ b/editeng/source/editeng/impedit.cxx @@ -1277,7 +1277,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()); |