summaryrefslogtreecommitdiff
path: root/svtools
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 /svtools
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 'svtools')
-rw-r--r--svtools/source/brwbox/brwbox1.cxx2
-rw-r--r--svtools/source/brwbox/brwbox2.cxx2
-rw-r--r--svtools/source/hatchwindow/ipwin.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx
index 7fbb0d08797f..fb393cca29e2 100644
--- a/svtools/source/brwbox/brwbox1.cxx
+++ b/svtools/source/brwbox/brwbox1.cxx
@@ -2017,7 +2017,7 @@ tools::Rectangle BrowseBox::GetRowRectPixel( sal_Int32 nRow ) const
aRect = tools::Rectangle(
Point( 0, GetDataRowHeight() * (nRow-nTopRow) ),
Size( pDataWin->GetOutputSizePixel().Width(), GetDataRowHeight() ) );
- if ( aRect.TopLeft().Y() > pDataWin->GetOutputSizePixel().Height() )
+ if ( aRect.Top() > pDataWin->GetOutputSizePixel().Height() )
// row is below visible area
return aRect;
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx
index 72830817e192..3ad89e4a4bbc 100644
--- a/svtools/source/brwbox/brwbox2.cxx
+++ b/svtools/source/brwbox/brwbox2.cxx
@@ -825,7 +825,7 @@ void BrowseBox::ImplPaintData(OutputDevice& _rOut, const tools::Rectangle& _rRec
// #73325# don't paint the row outside the painting rectangle (DG)
// prepare auto-highlight
- tools::Rectangle aRowRect( Point( _rRect.TopLeft().X(), aPos.Y() ),
+ tools::Rectangle aRowRect( Point( _rRect.Left(), aPos.Y() ),
Size( _rRect.GetSize().Width(), nDataRowHeigt ) );
bool bRowSelected = !bHideSelect
diff --git a/svtools/source/hatchwindow/ipwin.cxx b/svtools/source/hatchwindow/ipwin.cxx
index 751f3efa5e83..d2b56e5e236e 100644
--- a/svtools/source/hatchwindow/ipwin.cxx
+++ b/svtools/source/hatchwindow/ipwin.cxx
@@ -249,7 +249,7 @@ Point SvResizeHelper::GetTrackPosPixel( const tools::Rectangle & rRect ) const
break;
case 7:
if( bRTL )
- aPos.setX( aRect.Right() + aOuter.Right() - aOuter.TopRight().X() );
+ aPos.setX( aRect.Right() + aOuter.Right() - aOuter.Right() );
else
aPos.setX( aRect.Left() - aOuter.Left() );
break;