diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-19 15:19:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-20 08:15:29 +0200 |
commit | 0e8b7dd7a013dffe080148baac926a698f36ad85 (patch) | |
tree | 940962b117c06943784aa94f1116bf748a2d057c /sc/source/ui/Accessibility/AccessibleDocument.cxx | |
parent | 669d6ed4fa2e7a01c372a6e27dd5468ec8eb3077 (diff) |
split GetWindowExtentsRelative asunder
sometimes it returns a relative position, sometimes an absolute
position.
Rather have two different methods with names that match what
they return.
Change-Id: Ie1e73c6be1c797fd59934c96866d1fef1f972b35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154653
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleDocument.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 6311947f144e..8a6ed0723e43 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -2011,7 +2011,7 @@ Point ScAccessibleDocument::LogicToPixel (const Point& rPoint) const if (pWin) { aPoint = pWin->LogicToPixel(rPoint, pWin->GetDrawMapMode()); - aPoint += pWin->GetWindowExtentsRelative(nullptr).TopLeft(); + aPoint += pWin->GetWindowExtentsAbsolute().TopLeft(); } return aPoint; } @@ -2061,7 +2061,7 @@ tools::Rectangle ScAccessibleDocument::GetBoundingBoxOnScreen() const { vcl::Window* pWindow = mpViewShell->GetWindowByPos(meSplitPos); if (pWindow) - aRect = pWindow->GetWindowExtentsRelative(nullptr); + aRect = pWindow->GetWindowExtentsAbsolute(); } return aRect; } @@ -2073,7 +2073,7 @@ tools::Rectangle ScAccessibleDocument::GetBoundingBox() const { vcl::Window* pWindow = mpViewShell->GetWindowByPos(meSplitPos); if (pWindow) - aRect = pWindow->GetWindowExtentsRelative(pWindow->GetAccessibleParentWindow()); + aRect = pWindow->GetWindowExtentsRelative(*pWindow->GetAccessibleParentWindow()); } return aRect; } |