diff options
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 09e01e939693..9f8af9e648ee 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -1494,7 +1494,7 @@ tools::Rectangle ScAccessibleDocumentPagePreview::GetBoundingBoxOnScreen() const { vcl::Window* pWindow = mpViewShell->GetWindow(); if (pWindow) - aRect = pWindow->GetWindowExtentsRelative(nullptr); + aRect = pWindow->GetWindowExtentsAbsolute(); } return aRect; } @@ -1506,7 +1506,7 @@ tools::Rectangle ScAccessibleDocumentPagePreview::GetBoundingBox() const { vcl::Window* pWindow = mpViewShell->GetWindow(); if (pWindow) - aRect = pWindow->GetWindowExtentsRelative(pWindow->GetAccessibleParentWindow()); + aRect = pWindow->GetWindowExtentsRelative(*pWindow->GetAccessibleParentWindow()); } return aRect; } |