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

Get correct string value for group item value.

Unlike the old version, the new version no longer stores string value
for non-string items.  We need to call GetFormattedString() for that.
üst 7f681572
...@@ -1246,7 +1246,7 @@ void ScDPSaveData::BuildAllDimensionMembers(ScDPTableData* pData) ...@@ -1246,7 +1246,7 @@ void ScDPSaveData::BuildAllDimensionMembers(ScDPTableData* pData)
for (size_t j = 0; j < mMemberCount; ++j) for (size_t j = 0; j < mMemberCount; ++j)
{ {
const ScDPItemData* pMemberData = pData->GetMemberById( nDimIndex, rMembers[j] ); const ScDPItemData* pMemberData = pData->GetMemberById( nDimIndex, rMembers[j] );
::rtl::OUString aMemName = pMemberData->GetString(); rtl::OUString aMemName = pData->GetFormattedString(nDimIndex, *pMemberData);
if (iter->GetExistingMemberByName(aMemName)) if (iter->GetExistingMemberByName(aMemName))
// this member instance already exists. nothing to do. // this member instance already exists. nothing to do.
continue; continue;
......
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