kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone
Blob Blame History Raw
From d391dd145631ffdbc6e506ba59db7d1977331aff Mon Sep 17 00:00:00 2001
From: Kohei Yoshida <kohei.yoshida@collabora.com>
Date: Tue, 7 Jan 2014 16:36:55 -0500
Subject: [PATCH 4/9] fdo#72774: Ensure that all the group fields are in cache
 upon file load.

This resolves the originally reported issue in that bug (in Comment 1).

Change-Id: I6fb85cff1eafb78d784605aa08e7d992a1ac36e0
(cherry picked from commit 256e4ccba8a331f2d30c6b5da9dca70206deadae)
Reviewed-on: https://gerrit.libreoffice.org/7302
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
---
 sc/source/core/data/dpobject.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index f9344aa..3ade4cf 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -2858,6 +2858,9 @@ const ScDPCache* ScDPCollection::SheetCaches::getCache(const ScRange& rRange, co
             return NULL;
         }
 
+        if (pDimData)
+            pDimData->WriteToCache(*itCache->second);
+
         return itCache->second;
     }
 
-- 
1.8.4.2