[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - sc/source

Kohei Yoshida kohei.yoshida at gmail.com
Thu Mar 7 09:17:24 PST 2013


 sc/source/core/data/dpcache.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 25cfd690e84b52d854f79110db6e12f3f68b78b3
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Thu Mar 7 11:57:11 2013 -0500

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

diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx
index 7fdf098..4243065 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;
             }
         }
 


More information about the Libreoffice-commits mailing list