| commit | 9d46ee5e17fe70fb6fc0cbdcb85096ca8c7cff20 | [log] |
|---|---|---|
| author | Eike Rathke <erack@redhat.com> | Tue Sep 19 20:48:43 2017 +0200 |
| committer | Eike Rathke <erack@redhat.com> | Tue Sep 19 20:49:32 2017 +0200 |
| tree | 89ab690db0e2955eb1bb649f8af9978399b94122 | |
| parent | 5214e841b6ca5362f94d59f940ec3947978c1abe [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>
diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx b/svtools/source/filter/DocumentToGraphicRenderer.cxx index 5b125bb..180631c 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()