summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-07 11:57:11 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-07 12:01:52 -0500
commitdd1b3ca024a85597b46778a62007bb966174368d (patch)
tree4f2d4b565593be832fe8893c153472808bbc252e /sc
parentefc4d6b83fad337e8bee87d87387028d687934de (diff)
fdo#54651: Only pick non-default number format for pivot field.
Change-Id: Ia88282803c8df8389ed24efd8b1ca7600a39bf23
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/dpcache.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 3f7588c11fb7..358f826d618f 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;
}
}