svx/source/unodraw/UnoGraphicExporter.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f3ff67d3c3047de3ad43f8bb3f805d82eaef0479
Author: Armin Le Grand <armin.le.gr...@cib.de>
Date:   Wed Mar 2 17:21:10 2016 +0100

    tdf#96922 Suppress EditView PageVisuailsation in GraphicExporter
    
    PageBackground is due to old constraints in exporters not completely
    hindered when IsPageVisible() is already set for signalling that
    all EditView-specific Page visualisations should be suppressed.
    As long as these exporters are not adapted, use the setting of
    SetPagePaintingAllowed() which consequently achieves this.
    
    Change-Id: I2222a799533f763b54b2210a46c24aa8ae92d7a2
    Reviewed-on: https://gerrit.libreoffice.org/22837
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Michael Stahl <mst...@redhat.com>

diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx 
b/svx/source/unodraw/UnoGraphicExporter.cxx
index 435f071..e6b74d3 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -744,6 +744,10 @@ bool GraphicExporter::GetGraphic( ExportSettings& 
rSettings, Graphic& aGraphic,
                 pView->SetPageVisible( false );
                 pView->ShowSdrPage( pPage );
 
+                // tdf#96922 completely deactivate EditView PageVisualization, 
including
+                // PageBackground (formally 'wiese').
+                pView->SetPagePaintingAllowed(false);
+
                 const Point aNewOrg( pPage->GetLftBorder(), 
pPage->GetUppBorder() );
                 aNewSize = Size( aSize.Width() - pPage->GetLftBorder() - 
pPage->GetRgtBorder(),
                                  aSize.Height() - pPage->GetUppBorder() - 
pPage->GetLwrBorder() );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to