diff options
Diffstat (limited to 'sc/source/ui/unoobj/PivotTableDataProvider.cxx')
-rw-r--r-- | sc/source/ui/unoobj/PivotTableDataProvider.cxx | 7 |
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) |