summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-03 16:51:41 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-03 22:05:30 +0100
commit8ae25bbc092254f680e2976873f15bdbc26615ef (patch)
tree5578555ec0c0f00e3754c81104c9805ab3354813 /sc
parent816941f1396b79eba2dc3b46c6cffb53835ee923 (diff)
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
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documen9.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index bc8d76d3a41d..18d483c1e0ab 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -138,11 +138,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());