From 8a4df9376bf299beb49fe116882ffdbd10b5e02b Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Fri, 29 Sep 2017 00:25:23 +0200 Subject: tdf#112735: Pivot table: page field displays empty string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... instead of the "(empty)" string Change-Id: I2df84393b5213a57e941c9447e4367d7605a6b00 Reviewed-on: https://gerrit.libreoffice.org/42957 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- sc/source/core/data/dpoutput.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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& 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); -- cgit