summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/dptablecache.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/dptablecache.cxx b/sc/source/core/data/dptablecache.cxx
index cc60e6f03f4e..69f1bfa4f812 100644
--- a/sc/source/core/data/dptablecache.cxx
+++ b/sc/source/core/data/dptablecache.cxx
@@ -654,8 +654,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData)
if (maLabelNames[i].maString.equals(strNewName))
{
strNewName = pData->maString;
- strNewName += String::CreateFromInt32( nIndex );
- ++nIndex;
+ strNewName += String::CreateFromInt32( ++nIndex );
bFound = true;
}
}