summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);