diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-02-18 20:40:27 -0500 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-21 12:48:43 +0000 |
commit | de7ea676a51832d502b449b39809ce26299aa09a (patch) | |
tree | 15b67c7379d074a54a795740ae09596004236bef | |
parent | 8e2e2b0d2d585839e2ecf339f26336c8f653b0e6 (diff) |
fdo#74857: Update the incrementer when skipping over hidden regions.
Otherwise it would over-shoot.
Change-Id: I1f9741345dfe353e0b035ff3bead736ab3fccbef
(cherry picked from commit 637353bb46d3c7d9537e47e4e003aef78a0c0ab3)
Reviewed-on: https://gerrit.libreoffice.org/8117
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 793c2b2b3ac8c8e74ccdfc6876ce47e5039fb65a)
Reviewed-on: https://gerrit.libreoffice.org/8131
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/ui/view/tabview2.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx index bcce76ed94fb..8762520bedc0 100644 --- a/sc/source/ui/view/tabview2.cxx +++ b/sc/source/ui/view/tabview2.cxx @@ -86,6 +86,7 @@ void moveCursorByProtRule( if(nNewUnhiddenCol >= MAXCOL) return; + i += nEndCol - nNewUnhiddenCol + 1; nNewUnhiddenCol = nEndCol +1; } @@ -105,6 +106,7 @@ void moveCursorByProtRule( if(nNewUnhiddenCol <= 0) return; + i -= nNewUnhiddenCol - nStartCol + 1; nNewUnhiddenCol = nStartCol - 1; } @@ -125,6 +127,7 @@ void moveCursorByProtRule( if(nNewUnhiddenRow >= MAXROW) return; + i += nEndRow - nNewUnhiddenRow + 1; nNewUnhiddenRow = nEndRow + 1; } @@ -144,6 +147,7 @@ void moveCursorByProtRule( if(nNewUnhiddenRow <= 0) return; + i -= nNewUnhiddenRow - nStartRow + 1; nNewUnhiddenRow = nStartRow - 1; } |