[Libreoffice-commits] core.git: sc/source
Kohei Yoshida
kohei.yoshida at collabora.com
Wed Feb 19 02:37:43 CET 2014
sc/source/ui/view/tabview2.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 637353bb46d3c7d9537e47e4e003aef78a0c0ab3
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Tue Feb 18 20:40:27 2014 -0500
fdo#74857: Update the incrementer when skipping over hidden regions.
Otherwise it would over-shoot.
Change-Id: I1f9741345dfe353e0b035ff3bead736ab3fccbef
diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx
index 22b5e17..1fc8e19 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;
}
More information about the Libreoffice-commits
mailing list