summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-22 22:20:04 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-22 22:21:40 -0400
commit1d8b583b0676f9c9eed8efd092445908ebea26d9 (patch)
treefa7790753356e3b021cf47ff8b855754bca90b7b /sc
parent7f68157264ec5c474b2a0827d2ee35af20ff0c3d (diff)
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.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpsave.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index e112e6c5fdff..5255b725957e 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -1246,7 +1246,7 @@ void ScDPSaveData::BuildAllDimensionMembers(ScDPTableData* pData)
for (size_t j = 0; j < mMemberCount; ++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))
// this member instance already exists. nothing to do.
continue;