vcl/source/control/calendar.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 75c9b78b07d9b2e887f9ff7c57461ecfd873b3d1 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Nov 27 12:21:57 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Nov 27 13:38:32 2024 +0100 PVS: V560 A part of conditional expression is always true: !bSelection. Since commit c6fc14a42e068877af844b2695dea8939517c1ac Author: Noel Grandin <noel.gran...@collabora.co.uk> Date: Tue Jun 30 12:21:20 2020 +0200 loplugin:singlevalfields Change-Id: If5242fd47d550c905b480d848d926da37c57766e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177407 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/control/calendar.cxx b/vcl/source/control/calendar.cxx index 058fa113bba9..901a53000e0f 100644 --- a/vcl/source/control/calendar.cxx +++ b/vcl/source/control/calendar.cxx @@ -954,7 +954,6 @@ void Calendar::ImplTracking( const Point& rPos, bool bRepeat ) void Calendar::ImplEndTracking( bool bCancel ) { - bool bSelection = false; bool bSpinDown = mbSpinDown; mbDrag = false; @@ -1003,7 +1002,7 @@ void Calendar::ImplEndTracking( bool bCancel ) if ( !bCancel && ((maCurDate != maOldCurDate) || (*mpOldSelectTable != *mpSelectTable)) ) Select(); - if ( !bSelection && (mnWinStyle & WB_TABSTOP) && !bCancel ) + if ( (mnWinStyle & WB_TABSTOP) && !bCancel ) GrabFocus(); mpOldSelectTable.reset();