[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Wed Mar 2 16:12:52 PST 2011
sc/source/ui/docshell/docfunc.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 8e53354eb45df15635c0bed3cfe2f81ca2c55d3d
Author: Kohei Yoshida <kyoshida at novell.com>
Date: Wed Mar 2 19:10:17 2011 -0500
Fixed the "jump to precedents" and "jump to dependents" functions.
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 6042589..bd92801 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -548,14 +548,15 @@ static void lcl_collectAllPredOrSuccRanges(
ScDocument* pDoc = rDocShell.GetDocument();
vector<ScTokenRef> aRefTokens;
ScRangeList aSrcRanges(rSrcRanges);
- if ( aSrcRanges.empty() )
+ if (aSrcRanges.empty())
return;
ScRange* p = aSrcRanges.front();
ScDetectiveFunc aDetFunc(pDoc, p->aStart.Tab());
ScRangeList aDestRanges;
- for ( size_t i = 1, ListSize = aSrcRanges.size(); i < ListSize; ++i )
+ size_t i = 0;
+ for (size_t n = aSrcRanges.size(); i < n; ++i)
{
- p = aSrcRanges[ i ];
+ p = aSrcRanges[i];
if (bPred)
{
aDetFunc.GetAllPreds(
More information about the Libreoffice-commits
mailing list