summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-07-14 13:03:04 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-07-14 14:25:51 -0400
commitcdb8cf074c8536aa3ea30102bcb9b34feda21833 (patch)
treefcf2719b9a28eabde55d07b807a0d63550f5eda6
parentb545d3a3c427a2f42377f1cd3dd30bc5eeb36cda (diff)
fdo#36688: Make sure the drawing layer is initialized before use.
From how it's used, it appears to be the convention to call InitDrawLayer() before getting the drawing layer pointer, to ensure that the drawing layer is present when needed.
-rw-r--r--sc/source/ui/view/output.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index ba2db91dd..ede400622 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -1634,6 +1634,7 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
drawinglayer::processor2d::BaseProcessor2D* ScOutputData::CreateProcessor2D( )
{
+ pDoc->InitDrawLayer(pDoc->GetDocumentShell());
ScDrawLayer* pDrawLayer = pDoc->GetDrawLayer();
if (!pDrawLayer)
return NULL;