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
commit2e4696a673e108ee42a2d67faacd58a2c5efe81b (patch)
treec5b4aac4b500aa2f85700d247a9f0b7ea8fcba59
parentf673ae99358beab0c304d539d18ecd7a969ffc8a (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 b69f2ace659a..5d34fa25d1c3 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;