summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-09-19 20:48:43 +0200
committerEike Rathke <erack@redhat.com>2017-09-19 20:49:32 +0200
commit9d46ee5e17fe70fb6fc0cbdcb85096ca8c7cff20 (patch)
tree89ab690db0e2955eb1bb649f8af9978399b94122 /svtools
parent5214e841b6ca5362f94d59f940ec3947978c1abe (diff)
Call getCurrentPageWriter() only for Writer
Change-Id: I81dd61c33a0bc69e43d3325b297c44e5b7b732bd Reviewed-on: https://gerrit.libreoffice.org/42496 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/DocumentToGraphicRenderer.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx
index 5b125bbdebd3..180631cf56e4 100644
--- a/svtools/source/filter/DocumentToGraphicRenderer.cxx
+++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx
@@ -211,7 +211,11 @@ sal_Int32 DocumentToGraphicRenderer::getCurrentPage()
if (hasSelection())
return 1;
- return getCurrentPageWriter();
+ if (mbIsWriter)
+ return getCurrentPageWriter();
+
+ /* TODO: other application specific page detection? */
+ return 1;
}
sal_Int32 DocumentToGraphicRenderer::getCurrentPageWriter()