From 8e1e0246a5a33d9206d6310cf8a135c2cccd70f5 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 8 Feb 2019 15:05:33 +0300 Subject: tdf#120703 PVS: fix condition V560 A part of conditional expression is always false: nY == nStartRow. Change-Id: I2d1a809400d48889780ce320be740648f8d9b97f Reviewed-on: https://gerrit.libreoffice.org/67541 Tested-by: Jenkins Reviewed-by: Marco Cecchetti --- sc/source/ui/view/viewfunc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index cc9733a52c2b..12b78243c34d 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -1559,7 +1559,7 @@ void ScViewFunc::OnLOKInsertDeleteRow(SCROW nStartRow, long nOffset) else { SCROW nY = pTabViewShell->GetViewData().GetCurYForTab(nCurrentTabIndex); - if (nY >= nStartRow || (nY == nStartRow && nOffset > 0)) + if (nY > nStartRow || (nY == nStartRow && nOffset > 0)) { pTabViewShell->GetViewData().SetCurYForTab(nY + nOffset, nCurrentTabIndex); } -- cgit