diff options
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index cc0d3e9955bc..853bd50e9a88 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -553,8 +553,7 @@ static void lcl_collectAllPredOrSuccRanges( ScRange* p = aSrcRanges.front(); ScDetectiveFunc aDetFunc(pDoc, p->aStart.Tab()); ScRangeList aDestRanges; - size_t i = 0; - for (size_t n = aSrcRanges.size(); i < n; ++i) + for (size_t i = 0, n = aSrcRanges.size(); i < n; ++i) { p = aSrcRanges[i]; if (bPred) |