diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-28 11:49:35 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-28 11:51:18 -0500 |
commit | dc505d3a5cdebe6271fcd6dae7b4d69e7c1af13e (patch) | |
tree | 3326e934bc8e5ab834208c7b4d0b6d318659ac02 /sc | |
parent | a138709519b00b65cf5b530a319ed67ca657a1f4 (diff) |
bnc#520828: Correctly import fields with same name in excel's pivot tables.
We just need to append '2' on the 2nd field with identical name, not '1'.
This alone fixes the import problem.
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dptablecache.cxx | 3 |
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; } } |