summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-03-02 17:21:10 +0100
committerMichael Stahl <mstahl@redhat.com>2016-03-02 22:32:02 +0100
commit79288ac239ebf1916ffbf3c386482d00e6060f8d (patch)
tree4308ba1e4cefa280615b5c186d9a018f1d84485c
parentae13b1bd066263b6b3506fa262ab4808e675bc98 (diff)
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 <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit f3ff67d3c3047de3ad43f8bb3f805d82eaef0479) Signed-off-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--svx/source/unodraw/UnoGraphicExporter.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx
index 166b989bf1c1..08210d3028ed 100644
--- a/svx/source/unodraw/UnoGraphicExporter.cxx
+++ b/svx/source/unodraw/UnoGraphicExporter.cxx
@@ -748,6 +748,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() );