svtools/source/filter/DocumentToGraphicRenderer.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2bbd247f16d456eaa5591251e7a17ea198d3b39d
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Fri Oct 18 17:24:09 2024 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Sat Oct 19 13:36:06 2024 +0200

    tdf#156505 sw: reset view options after export as graphic
    
    When creating an export graphic,
    the view options are changed to hide hidden stuff,
    not show the formatting marks etc.
    
    However, the user's view settings were not being restored
    after the export was done.
    
    Change-Id: I3e236e5ef47eddca487621c92ec639f7bac073de
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175185
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/svtools/source/filter/DocumentToGraphicRenderer.cxx 
b/svtools/source/filter/DocumentToGraphicRenderer.cxx
index 67b080261238..b6d5869994b5 100644
--- a/svtools/source/filter/DocumentToGraphicRenderer.cxx
+++ b/svtools/source/filter/DocumentToGraphicRenderer.cxx
@@ -208,6 +208,7 @@ Graphic DocumentToGraphicRenderer::renderToGraphic(
         comphelper::makePropertyValue(u"View"_ustr, mxController),
         comphelper::makePropertyValue(u"RenderToGraphic"_ustr, true),
         comphelper::makePropertyValue(u"HasPDFExtOutDevData"_ustr, 
bExtOutDevData),
+        comphelper::makePropertyValue(u"IsLastPage"_ustr, true), // see 
PrinterController::abortJob
         comphelper::makePropertyValue(u"PageRange"_ustr, 
OUString::number(nCurrentPage))
     };
 

Reply via email to