summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfunc.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-02-08 15:05:33 +0300
committerMarco Cecchetti <mrcekets@gmail.com>2019-02-08 17:26:03 +0100
commit8e1e0246a5a33d9206d6310cf8a135c2cccd70f5 (patch)
treede313d6bee91d63de7c838aaac49d32cea39caa7 /sc/source/ui/view/viewfunc.cxx
parent0c314c90a7af7d9e855e3cacfd8e7a31ed065a26 (diff)
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 <mrcekets@gmail.com>
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r--sc/source/ui/view/viewfunc.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}