summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility/AccessibleEditObject.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleEditObject.cxx')
-rw-r--r--sc/source/ui/Accessibility/AccessibleEditObject.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleEditObject.cxx b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
index d500aa2a3a21..94e488a8ca33 100644
--- a/sc/source/ui/Accessibility/AccessibleEditObject.cxx
+++ b/sc/source/ui/Accessibility/AccessibleEditObject.cxx
@@ -196,7 +196,7 @@ tools::Rectangle ScAccessibleEditObject::GetBoundingBoxOnScreen() const
MapMode aMapMode( mpEditView->GetEditEngine()->GetRefMapMode() );
aScreenBounds = mpWindow->LogicToPixel( mpEditView->GetOutputArea(), aMapMode );
Point aCellLoc = aScreenBounds.TopLeft();
- tools::Rectangle aWindowRect = mpWindow->GetWindowExtentsRelative( nullptr );
+ tools::Rectangle aWindowRect = mpWindow->GetWindowExtentsAbsolute();
Point aWindowLoc = aWindowRect.TopLeft();
Point aPos( aCellLoc.getX() + aWindowLoc.getX(), aCellLoc.getY() + aWindowLoc.getY() );
aScreenBounds.SetPos( aPos );
@@ -204,7 +204,7 @@ tools::Rectangle ScAccessibleEditObject::GetBoundingBoxOnScreen() const
}
else
{
- aScreenBounds = mpWindow->GetWindowExtentsRelative( nullptr );
+ aScreenBounds = mpWindow->GetWindowExtentsAbsolute();
}
}