[Libreoffice-commits] core.git: svtools/source

Eike Rathke erack at redhat.com
Tue Sep 19 18:49:59 UTC 2017


 svtools/source/filter/DocumentToGraphicRenderer.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 9d46ee5e17fe70fb6fc0cbdcb85096ca8c7cff20
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Sep 19 20:48:43 2017 +0200

    Call getCurrentPageWriter() only for Writer
    
    Change-Id: I81dd61c33a0bc69e43d3325b297c44e5b7b732bd
    Reviewed-on: https://gerrit.libreoffice.org/42496
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

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()


More information about the Libreoffice-commits mailing list