From 5621b4b488abb4283c09f6f08b4c0e62dc6cd6a4 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 13 Nov 2024 11:02:55 +0100 Subject: [PATCH] tdf#163486: PVS: Expression can be simplified Since commit 8ab086b6cc054501bfbf7ef6fa509c393691e860 Author: Jens-Heiner Rechtien Date: Mon Sep 18 16:07:07 2000 +0000 initial import V1065 Expression can be simplified, check 'nRowCount' and similar operands. Change-Id: Icd9cdd82cb083e2b40498a21de44a814169977ef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176524 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- svtools/source/brwbox/brwbox1.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index 841a96d7af7e..0863dd9870c7 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2260,7 +2260,7 @@ void BrowseBox::VisibleRowsChanged( sal_Int32, sal_uInt16 ) } else if ( nRowCount > GetRowCount() ) { - RowRemoved(nRowCount-(nRowCount - GetRowCount()),nRowCount - GetRowCount(), false); + RowRemoved(GetRowCount(), nRowCount - GetRowCount(), false); } }