summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/filter/DocumentToGraphicRenderer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx
index 8bf5120078bc..33ac961f0928 100644
--- a/svtools/source/filter/DocumentToGraphicRenderer.cxx
+++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx
@@ -226,7 +226,7 @@ sal_Int32 DocumentToGraphicRenderer::getCurrentPageWriter()
if (!xTextViewCursorSupplier.is())
return 1;
Reference<text::XPageCursor> xCursor(xTextViewCursorSupplier->getViewCursor(), UNO_QUERY);
- return xCursor->getPage();
+ return xCursor.is() ? xCursor->getPage() : 1;
}
// static