summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/PivotTableDataProvider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/PivotTableDataProvider.cxx')
-rw-r--r--sc/source/ui/unoobj/PivotTableDataProvider.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
index d412265b033c..050f91122323 100644
--- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx
+++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx
@@ -459,11 +459,8 @@ void PivotTableDataProvider::collectPivotTableData()
{
if (!bHasContinueFlag)
{
- double fValue = rMember.Value;
- if (rtl::math::isNan(fValue))
- pItem.reset(new ValueAndFormat(rMember.Caption));
- else
- pItem.reset(new ValueAndFormat(fValue, nNumberFormat));
+ // Chart2 does not use number format for labels, so use the display string.
+ pItem.reset(new ValueAndFormat(rMember.Caption));
}
if (bFound)