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