vcl/source/window/splitwin.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit 993c87260690f79e1eb93ebe64a70d0af37490cd Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Fri Oct 18 22:49:23 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Oct 22 12:14:48 2024 +0200 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 1241, 1244. Also, 1247 and 1251. Change-Id: Ibf474d045ae52bc0d7f655143e72117c29736dfe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175206 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 26dfabf09beb..2e48a7282870 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1238,15 +1238,11 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize ) switch ( meAlign ) { case WindowAlign::Top: - aSize.AdjustHeight(nDelta ); - break; case WindowAlign::Bottom: aSize.AdjustHeight(nDelta ); break; - case WindowAlign::Left: - aSize.AdjustWidth(nDelta ); - break; case WindowAlign::Right: + case WindowAlign::Left: default: aSize.AdjustWidth(nDelta ); break;