summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-17 11:24:56 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-09-17 11:29:39 -0400
commit902564bfe52e7699cefc80b3334c2eb0a8cacdcf (patch)
tree7ae8a4cb5899c33d4626968c7bea9ab299aa95ac /sc/source
parent258888bc3f0ba4474ff66d49d698f4551df736eb (diff)
bnc#592918: Display data description in pivot table.
When there are no column fields and exactly one data field. Change-Id: I10d2af7e626f98a4d8a981e078e99e7da9207d1c
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/dpoutput.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index eb5103502234..eaa8fea61438 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -1128,6 +1128,15 @@ void ScDPOutput::Output()
}
}
+ if (nColCount == 1 && nRowCount > 0 && nColFieldCount == 0)
+ {
+ // the table contains excatly one data field and no column fields.
+ // Display data description at top right corner.
+ ScSetStringParam aParam;
+ aParam.setTextInput();
+ pDoc->SetString(nDataStartCol, nDataStartRow-1, nTab, aDataDescription, &aParam);
+ }
+
// output data results:
for (long nRow=0; nRow<nRowCount; nRow++)