summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmldpimp.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei@openoffice.org>2009-09-02 20:46:19 +0000
committerKohei Yoshida <kohei@openoffice.org>2009-09-02 20:46:19 +0000
commit1d87f1d07f98db077a182fffe0f55aa029fbd3ae (patch)
tree8ecd80e2cca603fbf319620b7f9fa31a993c3ec3 /sc/source/filter/xml/xmldpimp.cxx
parentfb8e51e2a5dc9d95a3465ca3041b0b27591df0a6 (diff)
Fixed a bug where field arrow buttons didn't indicate the presence of hidden members when the name of a field was a layout name.
Diffstat (limited to 'sc/source/filter/xml/xmldpimp.cxx')
-rw-r--r--sc/source/filter/xml/xmldpimp.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmldpimp.cxx b/sc/source/filter/xml/xmldpimp.cxx
index 572bcbb817e3..da89897269f0 100644
--- a/sc/source/filter/xml/xmldpimp.cxx
+++ b/sc/source/filter/xml/xmldpimp.cxx
@@ -357,7 +357,15 @@ void ScXMLDataPilotTableContext::AddDimension(ScDPSaveDimension* pDim, bool bHas
}
if (bHasHiddenMember)
- maHiddenMemberFields.insert(pDim->GetName());
+ {
+ // the layout name takes priority over the original name,
+ // since this data is used against cell values.
+ const OUString* pLayoutName = pDim->GetLayoutName();
+ if (pLayoutName)
+ maHiddenMemberFields.insert(*pLayoutName);
+ else
+ maHiddenMemberFields.insert(pDim->GetName());
+ }
}
pDPSave->AddDimension(pDim);
}