From 581b2cf7960c48e6199bd35be839424113abe533 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 13 Aug 2021 16:44:15 +0300 Subject: Drop tools::Rectangle::getX/getY, which are just duplicates of Left/Top The change allowed to simplify many places where previously this API was used, to avoid inefficient calculations (e.g., moving rectangle keeping its size, and then immediately changing the size). Change-Id: Ica2dc594d91cae83e2c2740c1f4fb23f44998916 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120461 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- basctl/source/basicide/baside2b.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 3335424583a0..aeb49604cc50 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -401,8 +401,7 @@ void EditorWindow::RequestHelp( const HelpEvent& rHEvt ) Point aTopLeft = GetEditView()->GetWindowPos(aHelpRect.TopLeft()); aTopLeft = GetEditView()->GetWindow()->OutputToScreenPixel(aTopLeft); - aHelpRect.setX(aTopLeft.X()); - aHelpRect.setY(aTopLeft.Y()); + aHelpRect.SetPos(aTopLeft); } } } -- cgit v1.2.3