diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-20 18:12:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-20 18:12:23 +0200 |
commit | 03bb5d52fecd6c613c6cc36508eb44e5e1c3456a (patch) | |
tree | c96d4cf398cea8ffe1ea5f1de8c071477d4b4a5d /svtools | |
parent | fd612a144c0028972513a18167a13d29326a1798 (diff) |
sc: initial png export
Change-Id: Iae0e89646eab794879529274f09839ad34aa4696
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/filter/DocumentToGraphicRenderer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx index e33a94ec416e..e78b0f1ad8ab 100644 --- a/svtools/source/filter/DocumentToGraphicRenderer.cxx +++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx @@ -148,6 +148,8 @@ Graphic DocumentToGraphicRenderer::renderToGraphic( sal_Int32 DocumentToGraphicRenderer::getCurrentPageWriter() { Reference<text::XTextViewCursorSupplier> xTextViewCursorSupplier(mxModel->getCurrentController(), UNO_QUERY); + if (!xTextViewCursorSupplier.is()) + return 1; Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), UNO_QUERY); return xCursor->getPage(); } |