vcl/qa/cppunit/complextext.cxx | 2 +- vcl/source/app/svapp.cxx | 2 +- vcl/source/control/scrbar.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 9e7aee7c85b5ef341705d2969461bc96743fcbcc Author: Chris Sherlock <chris.sherloc...@gmail.com> AuthorDate: Mon Jul 18 19:46:22 2022 +1000 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Jul 19 12:05:10 2022 +0200 vcl: migrate from getOpenHeight/Width() to GetWidth/Height() Change-Id: Ia51d6a6f2e9dcb6ba6193f7617848e7bd560dabb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137170 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx index a79fe420884d..a7cf83d4edfd 100644 --- a/vcl/qa/cppunit/complextext.cxx +++ b/vcl/qa/cppunit/complextext.cxx @@ -95,7 +95,7 @@ void VclComplexTextTest::testArabic() pOutDev->GetTextBoundRect(aBoundRect, aOneTwoThree); CPPUNIT_ASSERT_DOUBLES_EQUAL(0, aBoundRect.Left(), 1); // This sometimes equals to 1 CPPUNIT_ASSERT_DOUBLES_EQUAL(1, aBoundRect.Top(), 1); - CPPUNIT_ASSERT_DOUBLES_EQUAL(71, aBoundRect.getOpenWidth(), 1); // This sometimes equals to 70 + CPPUNIT_ASSERT_DOUBLES_EQUAL(71, aBoundRect.GetWidth(), 2); // This sometimes equals to 70 CPPUNIT_ASSERT_DOUBLES_EQUAL(15, aBoundRect.getOpenHeight(), 1); #if 0 diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index c315c35f0fd1..36beccb6bcb5 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -1375,7 +1375,7 @@ tools::Rectangle Application::GetScreenPosSizePixel( unsigned int nScreen ) return tools::Rectangle(); } tools::Rectangle aRect = pSys->GetDisplayScreenPosSizePixel(nScreen); - if (aRect.getOpenHeight() == 0) + if (aRect.GetHeight() == 0) SAL_WARN("vcl", "Requesting screen size/pos for screen #" << nScreen << " returned 0 height."); return aRect; } diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index 7ef7174ee714..79fb1d4c11df 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -1118,12 +1118,12 @@ IMPL_LINK_NOARG(ScrollBar, ImplAutoTimerHdl, Timer *, void) void ScrollBar::ImplInvert() { tools::Rectangle aRect( maThumbRect ); - if( aRect.getOpenWidth() > 4 ) + if( aRect.GetWidth() > 5 ) { aRect.AdjustLeft(2 ); aRect.AdjustRight( -2 ); } - if( aRect.getOpenHeight() > 4 ) + if( aRect.GetHeight() > 5 ) { aRect.AdjustTop(2 ); aRect.AdjustBottom( -2 );