diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-29 00:25:23 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-10-07 12:13:50 +0200 |
commit | ad936ab46da3a0b22aff4f5c5c00d78e323adafe (patch) | |
tree | 561635e4d045eb6823a63906916ca37acb0cbf37 | |
parent | 307f95db16880d2fed121c2ebb80485abf7e8ed5 (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>
(cherry picked from commit 8a4df9376bf299beb49fe116882ffdbd10b5e02b)
Reviewed-on: https://gerrit.libreoffice.org/43052
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 6f1faf87b5f2..4f46567f564a 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -1040,7 +1040,12 @@ void ScDPOutput::Output() const uno::Sequence<sheet::MemberResult>& rRes = pPageFields[nField].aResult; 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).toString(); |