summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-09-29 00:25:23 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-09-30 16:32:29 +0200
commit8a4df9376bf299beb49fe116882ffdbd10b5e02b (patch)
tree7621c654302c486ff3c0c8e6a98abcc3b3b66886
parent0e3eb2c1eb75655ea61a1bf0716dab0acaf19467 (diff)
tdf#112735: Pivot table: page field displays empty string
... instead of the "(empty)" string Change-Id: I2df84393b5213a57e941c9447e4367d7605a6b00 Reviewed-on: https://gerrit.libreoffice.org/42957 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--sc/source/core/data/dpoutput.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 2bd362e30762..15ddcbee7ba3 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -973,7 +973,12 @@ void ScDPOutput::Output()
const uno::Sequence<sheet::MemberResult>& rRes = pPageFields[nField].maResult;
sal_Int32 n = rRes.getLength();
if (n == 1)
- aPageValue = rRes[0].Caption;
+ {
+ if (rRes[0].Caption.isEmpty())
+ aPageValue = ScGlobal::GetRscString(STR_EMPTYDATA);
+ else
+ aPageValue = rRes[0].Caption;
+ }
else if (n > 1)
aPageValue = ScResId(SCSTR_MULTIPLE);