summaryrefslogtreecommitdiff
path: root/sw/source/core/access/acccontext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-25 19:44:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-26 08:42:27 +0200
commit56d7c40e87076fbce0a402dc56ed5a3d536c36a9 (patch)
treef255719bf6f83ecacb988db0f47de0ef4b31b09b /sw/source/core/access/acccontext.cxx
parent399149155cf4f882541848ea53bfa5c9806b23f8 (diff)
CoreToPixel should take a SwRect argument
Change-Id: Idbed2a8fc6b4bc289c3bb0e761931f0b3d672620 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116121 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/access/acccontext.cxx')
-rw-r--r--sw/source/core/access/acccontext.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index 04beb8200745..82859195b12a 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -830,7 +830,7 @@ uno::Reference< XAccessible > SAL_CALL SwAccessibleContext::getAccessibleAtPoint
if( !GetFrame()->IsRootFrame() )
{
SwRect aLogBounds( GetBounds( *(GetMap()), GetFrame() ) ); // twip rel to doc root
- Point aPixPos( GetMap()->CoreToPixel( aLogBounds.SVRect() ).TopLeft() );
+ Point aPixPos( GetMap()->CoreToPixel( aLogBounds ).TopLeft() );
aPixPoint.setX(aPixPoint.getX() + aPixPos.getX());
aPixPoint.setY(aPixPoint.getY() + aPixPos.getY());
}
@@ -905,11 +905,11 @@ awt::Rectangle SwAccessibleContext::getBoundsImpl(bool bRelative)
}
if( !aLogBounds.IsEmpty() )
{
- aPixBounds = GetMap()->CoreToPixel( aLogBounds.SVRect() );
+ aPixBounds = GetMap()->CoreToPixel( aLogBounds );
if( !pParent->IsRootFrame() && bRelative)
{
SwRect aParentLogBounds( GetBounds( *(GetMap()), pParent ) ); // twip rel to doc root
- Point aParentPixPos( GetMap()->CoreToPixel( aParentLogBounds.SVRect() ).TopLeft() );
+ Point aParentPixPos( GetMap()->CoreToPixel( aParentLogBounds ).TopLeft() );
aPixBounds.Move( -aParentPixPos.getX(), -aParentPixPos.getY() );
}
}