summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-10-06 22:27:31 +0200
committerAndras Timar <andras.timar@collabora.com>2017-10-07 12:53:54 +0200
commit94109b88446b93ac2a092daf8a66986456e54725 (patch)
treebac1a54c9b1f1806289208a189f3e539be6fdcee /sc
parentd9f9e28648168d721ecdc70b0252f67b7d3b68fd (diff)
tdf#112884: Error string is displayed as empty item in pivot table
Need to get the right string representation of error cells. Based on the code it seems a regression from: d4cd8677889ec3807c194ef5b462f8e031807e5b Reviewed-on: https://gerrit.libreoffice.org/43146 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit ee46269003aed237edcd9c086fd14ecded08bbeb) Change-Id: I30001e63cd17ae68ba4988d5825de479a4496326 Reviewed-on: https://gerrit.libreoffice.org/43215 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpcache.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 2db6ff88a8b8..c5e67657384c 100644
--- a/sc/source/core/data/dpcache.cxx
+++ b/sc/source/core/data/dpcache.cxx
@@ -134,7 +134,7 @@ void initFromCell(
if (rCell.hasError())
{
- rData.SetErrorString(rCache.InternString(aDocStr));
+ rData.SetErrorString(rCache.InternString(pDoc->GetString(rPos.Col(), rPos.Row(), rPos.Tab())));
}
else if (rCell.hasNumeric())
{