diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-07 11:57:11 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-07 12:19:29 -0500 |
commit | 25cfd690e84b52d854f79110db6e12f3f68b78b3 (patch) | |
tree | 304e7e4e0ee31f3cb68df433c1c7d36a70d446d4 /sc | |
parent | c4b8b59adee566833d4394b21508efdfda6bdcd6 (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.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 7fdf098d7c63..42430654619f 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -419,7 +419,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; } } |