diff options
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 2 |
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); } |