[Libreoffice-commits] core.git: Branch 'libreoffice-4-4' - sc/source

Caolán McNamara caolanm at redhat.com
Thu Jun 11 02:53:20 PDT 2015


 sc/source/core/data/documen9.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit cbef9bda246c13dcad27bf8205930fc16b3e0265
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 3 16:51:41 2015 +0100

    Resolves: tdf#90435 secondary pool set to that of temp docs drawing layers
    
    overwriting the original one, and when the temp doc goes away then its drawing
    layer goes away autoamtically settings the secondary pools of the other pools
    it is a secondary of back to 0
    
    (see also tdf#87245)
    
    Change-Id: Ie6dd8d615f81cf4d4776eaeac1cc2507b2abaa37
    (cherry picked from commit 8ae25bbc092254f680e2976873f15bdbc26615ef)
    Reviewed-on: https://gerrit.libreoffice.org/16075
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 4fe1a11..118efa6 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -139,11 +139,11 @@ void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
         // in SfxItemSets using the Calc SfxItemPool. This is e.g. needed when
         // the PageStyle using SvxBrushItem is visualized and will be potentially
         // used more intense in the future
-        if(xPoolHelper.is())
+        if (xPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called
         {
             ScDocumentPool* pLocalPool = xPoolHelper->GetDocPool();
 
-            if(pLocalPool)
+            if (pLocalPool)
             {
                 OSL_ENSURE(!pLocalPool->GetSecondaryPool(), "OOps, already a secondary pool set where the DrawingLayer ItemPool is to be placed (!)");
                 pLocalPool->SetSecondaryPool(&pDrawLayer->GetItemPool());


More information about the Libreoffice-commits mailing list