summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-27 15:03:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-28 11:55:30 +0100
commitddf8a2f91bb14be1b1cca2d2ea0ebd7fda5dd0fe (patch)
treefef6d1f8cca75a09de7ed2d8efb438a2be07272c /accessibility
parent1da69081732c8a429840edaaf10cfb789ea68df8 (diff)
TopLeft().Y() -> Top() etc.
TopLeft().X() -> Left() BottomLeft().X() -> Left() TopRight().X() -> Right() BottomRight().X() -> Right() TopLeft().Y() -> Top() TopRight().Y() -> Top() BottomLeft().Y() -> Bottom() BottomRight().Y() -> Bottom() Change-Id: I5050f619bf92cfc59b6f8dfe7c9f98ef1453c294 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110022 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/helper/listboxhelper.hxx2
-rw-r--r--accessibility/source/standard/vclxaccessiblelistitem.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/inc/helper/listboxhelper.hxx b/accessibility/inc/helper/listboxhelper.hxx
index b5e09034d01c..dfadf37aa015 100644
--- a/accessibility/inc/helper/listboxhelper.hxx
+++ b/accessibility/inc/helper/listboxhelper.hxx
@@ -51,7 +51,7 @@ public:
{
tools::Rectangle aTemp = m_aComboListBox.GetWindowExtentsRelative(nullptr);
tools::Rectangle aRet = m_aComboListBox.GetDropDownPosSizePixel();
- aRet.Move(aTemp.TopLeft().X(),aTemp.TopLeft().Y());
+ aRet.Move(aTemp.Left(), aTemp.Top());
return aRet;
}
diff --git a/accessibility/source/standard/vclxaccessiblelistitem.cxx b/accessibility/source/standard/vclxaccessiblelistitem.cxx
index 7f807c5e7240..872f75b40581 100644
--- a/accessibility/source/standard/vclxaccessiblelistitem.cxx
+++ b/accessibility/source/standard/vclxaccessiblelistitem.cxx
@@ -295,7 +295,7 @@ sal_Bool SAL_CALL VCLXAccessibleListItem::containsPoint( const awt::Point& _aPoi
if (pListBoxHelper)
{
tools::Rectangle aRect(pListBoxHelper->GetBoundingRectangle(static_cast<sal_uInt16>(m_nIndexInParent)));
- aRect.Move(-aRect.TopLeft().X(),-aRect.TopLeft().Y());
+ aRect.Move(-aRect.Left(), -aRect.Top());
bInside = aRect.IsInside( VCLPoint( _aPoint ) );
}
return bInside;