Kaydet (Commit) dc505d3a authored tarafından Kohei Yoshida's avatar Kohei Yoshida

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.
üst a1387095
...@@ -654,8 +654,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData) ...@@ -654,8 +654,7 @@ void ScDPCache::AddLabel(ScDPItemData *pData)
if (maLabelNames[i].maString.equals(strNewName)) if (maLabelNames[i].maString.equals(strNewName))
{ {
strNewName = pData->maString; strNewName = pData->maString;
strNewName += String::CreateFromInt32( nIndex ); strNewName += String::CreateFromInt32( ++nIndex );
++nIndex;
bFound = true; bFound = true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment