Kaydet (Commit) dd1b3ca0 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#54651: Only pick non-default number format for pivot field.

Change-Id: Ia88282803c8df8389ed24efd8b1ca7600a39bf23
üst efc4d6b8
...@@ -357,7 +357,9 @@ bool ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange) ...@@ -357,7 +357,9 @@ bool ScDPCache::InitFromDoc(ScDocument* pDoc, const ScRange& rRange)
if (!aData.IsEmpty()) if (!aData.IsEmpty())
{ {
maEmptyRows.insert_back(i, i+1, false); maEmptyRows.insert_back(i, i+1, false);
rField.mnNumFormat = nNumFormat; if (nNumFormat)
// Only take non-default number format.
rField.mnNumFormat = nNumFormat;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment