diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-07-14 17:03:04 +0000 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-07-15 01:10:04 +0200 |
commit | 923514a2dc7a0de237eba70f131f361efd33865a (patch) | |
tree | 2226a8624552063eb79760dbd98c7be9bcf6bad8 | |
parent | f26066e1697acb5edf1f0d84e1500f2a6c2901d5 (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: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/ui/view/output.cxx | 1 |
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; |