sc/source/core/data/dpoutput.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 8a4df9376bf299beb49fe116882ffdbd10b5e02b Author: Tamás Zolnai <tamas.zol...@collabora.com> Date: Fri Sep 29 00:25:23 2017 +0200 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 <c...@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zol...@collabora.com> 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);
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits