vcl/source/control/spinbtn.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
New commits: commit e262ddf89c21966c56fe41483045b40ee461c80a Author: Christopher Sherlock <chris.sherloc...@gmail.com> AuthorDate: Wed Dec 25 20:34:52 2024 +1100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Tue Mar 4 16:08:30 2025 +0100 vcl: flatten ImplFindPartRect() Change-Id: I6d6c08355c675f29471e2fcd835ccee3d7cffc48 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179368 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index 6be8820752b4..03a5a7374d06 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -414,14 +414,15 @@ void SpinButton::ImplCalcFocusRect( bool _bUpper ) mbUpperIsFocused = _bUpper; } -tools::Rectangle* SpinButton::ImplFindPartRect( const Point& rPt ) +tools::Rectangle* SpinButton::ImplFindPartRect(const Point& rPt) { - if( maUpperRect.Contains( rPt ) ) + if (maUpperRect.Contains(rPt)) return &maUpperRect; - else if( maLowerRect.Contains( rPt ) ) + + if (maLowerRect.Contains(rPt)) return &maLowerRect; - else - return nullptr; + + return nullptr; } bool SpinButton::PreNotify( NotifyEvent& rNEvt )