Kaydet (Commit) 8e1e0246 authored tarafından Mike Kaganski's avatar Mike Kaganski Kaydeden (comit) Marco Cecchetti

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: 's avatarMarco Cecchetti <mrcekets@gmail.com>
üst 0c314c90
...@@ -1559,7 +1559,7 @@ void ScViewFunc::OnLOKInsertDeleteRow(SCROW nStartRow, long nOffset) ...@@ -1559,7 +1559,7 @@ void ScViewFunc::OnLOKInsertDeleteRow(SCROW nStartRow, long nOffset)
else else
{ {
SCROW nY = pTabViewShell->GetViewData().GetCurYForTab(nCurrentTabIndex); 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); pTabViewShell->GetViewData().SetCurYForTab(nY + nOffset, nCurrentTabIndex);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment