diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-19 15:19:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-20 08:15:29 +0200 |
commit | 0e8b7dd7a013dffe080148baac926a698f36ad85 (patch) | |
tree | 940962b117c06943784aa94f1116bf748a2d057c /vcl/source/control/listbox.cxx | |
parent | 669d6ed4fa2e7a01c372a6e27dd5468ec8eb3077 (diff) |
split GetWindowExtentsRelative asunder
sometimes it returns a relative position, sometimes an absolute
position.
Rather have two different methods with names that match what
they return.
Change-Id: Ie1e73c6be1c797fd59934c96866d1fef1f972b35
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154653
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/listbox.cxx')
-rw-r--r-- | vcl/source/control/listbox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx index d60e5e030476..79b971636125 100644 --- a/vcl/source/control/listbox.cxx +++ b/vcl/source/control/listbox.cxx @@ -1121,7 +1121,7 @@ bool ListBox::IsInDropDown() const tools::Rectangle ListBox::GetBoundingRectangle( sal_Int32 nItem ) const { tools::Rectangle aRect = mpImplLB->GetMainWindow()->GetBoundingRectangle( nItem ); - tools::Rectangle aOffset = mpImplLB->GetMainWindow()->GetWindowExtentsRelative( static_cast<vcl::Window*>(const_cast<ListBox *>(this)) ); + tools::Rectangle aOffset = mpImplLB->GetMainWindow()->GetWindowExtentsRelative( *static_cast<vcl::Window*>(const_cast<ListBox *>(this)) ); aRect.Move( aOffset.Left(), aOffset.Top() ); return aRect; } @@ -1375,7 +1375,7 @@ sal_uInt16 ListBox::GetDisplayLineCount() const tools::Rectangle ListBox::GetDropDownPosSizePixel() const { - return mpFloatWin ? mpFloatWin->GetWindowExtentsRelative(this) : tools::Rectangle(); + return mpFloatWin ? mpFloatWin->GetWindowExtentsRelative(*this) : tools::Rectangle(); } const Wallpaper& ListBox::GetDisplayBackground() const |