diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-07 11:57:11 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-07 17:42:30 +0000 |
commit | a7223551f8d3c6d08fcfe951ac21ec8dc8ee00af (patch) | |
tree | 3c516cfcc3c27323d1473ccff7109fcdbab06810 | |
parent | 99f785a595617444e0e69d66d9a2f886d9a5718e (diff) |
fdo#54651: Only pick non-default number format for pivot field.
Change-Id: Ia88282803c8df8389ed24efd8b1ca7600a39bf23
(cherry picked from commit dd1b3ca024a85597b46778a62007bb966174368d)
Reviewed-on: https://gerrit.libreoffice.org/2585
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/core/data/dpcache.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 5f075a30e516..018d1a22d9f7 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -357,7 +357,9 @@ bool ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange) if (!aData.IsEmpty()) { maEmptyRows.insert_back(i, i+1, false); - rField.mnNumFormat = nNumFormat; + if (nNumFormat) + // Only take non-default number format. + rField.mnNumFormat = nNumFormat; } } |