diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-27 15:03:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-28 11:55:30 +0100 |
commit | ddf8a2f91bb14be1b1cca2d2ea0ebd7fda5dd0fe (patch) | |
tree | fef6d1f8cca75a09de7ed2d8efb438a2be07272c /svx | |
parent | 1da69081732c8a429840edaaf10cfb789ea68df8 (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 'svx')
-rw-r--r-- | svx/source/dialog/connctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/svxbmpnumvalueset.cxx | 4 | ||||
-rw-r--r-- | svx/source/stbctrls/zoomsliderctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/UnoGraphicExporter.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx index e3496cafed57..ecc0cc98f0cb 100644 --- a/svx/source/dialog/connctrl.cxx +++ b/svx/source/dialog/connctrl.cxx @@ -116,7 +116,7 @@ void SvxXConnectionPreview::AdaptSize() // Origin aNewPos = aDisplayMap.GetOrigin(); - aNewPos -= Point( aRect.TopLeft().X(), aRect.TopLeft().Y() ); + aNewPos -= Point( aRect.Left(), aRect.Top() ); aDisplayMap.SetOrigin( aNewPos ); SetMapMode( aDisplayMap ); diff --git a/svx/source/dialog/svxbmpnumvalueset.cxx b/svx/source/dialog/svxbmpnumvalueset.cxx index c86145630402..b848fa63672b 100644 --- a/svx/source/dialog/svxbmpnumvalueset.cxx +++ b/svx/source/dialog/svxbmpnumvalueset.cxx @@ -261,8 +261,8 @@ void SvxNumValueSet::UserDraw( const UserDrawEvent& rUDEvt ) // has to be made again pVDev->SetLineColor(aBackColor); pVDev->DrawRect(aOrgRect); - tools::Long nStartX = aOrgRect.TopLeft().X(); - tools::Long nStartY = aOrgRect.TopLeft().Y(); + tools::Long nStartX = aOrgRect.Left(); + tools::Long nStartY = aOrgRect.Top(); if(xFormatter.is() && aOutlineSettings.getLength() > nItemId - 1) { diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx index 822c28ed59b5..9860edcc54d7 100644 --- a/svx/source/stbctrls/zoomsliderctrl.cxx +++ b/svx/source/stbctrls/zoomsliderctrl.cxx @@ -275,7 +275,7 @@ void SvxZoomSliderControl::Paint( const UserDrawEvent& rUsrEvt ) pDev->DrawImage( aImagePoint, mxImpl->maDecreaseButton ); // draw increase button - aImagePoint.setX( aRect.TopLeft().X() + aControlRect.GetWidth() - mxImpl->maIncreaseButton.GetSizePixel().Width() - (nSliderXOffset - mxImpl->maIncreaseButton.GetSizePixel().Height())/2 ); + aImagePoint.setX( aRect.Left() + aControlRect.GetWidth() - mxImpl->maIncreaseButton.GetSizePixel().Width() - (nSliderXOffset - mxImpl->maIncreaseButton.GetSizePixel().Height())/2 ); pDev->DrawImage( aImagePoint, mxImpl->maIncreaseButton ); pDev->SetLineColor( aOldLineColor ); diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index 87f2e40bfc36..e53f3a7cf0df 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -920,7 +920,7 @@ bool GraphicExporter::GetGraphic( ExportSettings const & rSettings, Graphic& aGr aMtf.Record( aOut ); MapMode aOutMap( aMap ); - aOutMap.SetOrigin( Point( -aBound.TopLeft().X(), -aBound.TopLeft().Y() ) ); + aOutMap.SetOrigin( Point( -aBound.Left(), -aBound.Top() ) ); aOut->SetRelativeMapMode( aOutMap ); sdr::contact::DisplayInfo aDisplayInfo; |