summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-07-14 13:03:04 -0400
committerNoel Power <noel.power@novell.com>2011-07-15 09:43:35 +0100
commit8f7e08c1349a3e3737de36110aac22dd7494d816 (patch)
tree2226a8624552063eb79760dbd98c7be9bcf6bad8
parent9ccbe796c993b01f9c26a69714a0970d639b6d14 (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. Signed-off-by: Noel Power <noel.power@novell.com>
-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 f37a2c8df..ab698e403 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;