summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen9.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/documen9.cxx')
-rw-r--r--sc/source/core/data/documen9.cxx18
1 files changed, 5 insertions, 13 deletions
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 50195aee77f4..d0813798ca03 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -157,7 +157,11 @@ void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
pDrawLayer->SetDefaultTabulator( GetDocOptions().GetTabDistance() );
UpdateDrawPrinter();
- UpdateDrawDefaults();
+
+ // set draw defaults directly
+ SfxItemPool& rDrawPool = pDrawLayer->GetItemPool();
+ rDrawPool.SetPoolDefaultItem( SvxAutoKernItem( sal_True, EE_CHAR_PAIRKERNING ) );
+
UpdateDrawLanguages();
if (bImportingXML)
pDrawLayer->EnableAdjust(false);
@@ -179,18 +183,6 @@ void ScDocument::UpdateDrawLanguages()
}
}
-void ScDocument::UpdateDrawDefaults()
-{
- // drawing layer defaults that are set for new documents (if InitNew was called)
-
- if ( pDrawLayer && bSetDrawDefaults )
- {
- SfxItemPool& rDrawPool = pDrawLayer->GetItemPool();
- rDrawPool.SetPoolDefaultItem( SvxAutoKernItem( true, EE_CHAR_PAIRKERNING ) );
- pDrawLayer->SetDrawingLayerPoolDefaults();
- }
-}
-
void ScDocument::UpdateDrawPrinter()
{
if (pDrawLayer)