Kaydet (Commit) f3ff67d3 authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Michael Stahl

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/22837Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 01ffe26f
...@@ -744,6 +744,10 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic, ...@@ -744,6 +744,10 @@ bool GraphicExporter::GetGraphic( ExportSettings& rSettings, Graphic& aGraphic,
pView->SetPageVisible( false ); pView->SetPageVisible( false );
pView->ShowSdrPage( pPage ); pView->ShowSdrPage( pPage );
// tdf#96922 completely deactivate EditView PageVisualization, including
// PageBackground (formally 'wiese').
pView->SetPagePaintingAllowed(false);
const Point aNewOrg( pPage->GetLftBorder(), pPage->GetUppBorder() ); const Point aNewOrg( pPage->GetLftBorder(), pPage->GetUppBorder() );
aNewSize = Size( aSize.Width() - pPage->GetLftBorder() - pPage->GetRgtBorder(), aNewSize = Size( aSize.Width() - pPage->GetLftBorder() - pPage->GetRgtBorder(),
aSize.Height() - pPage->GetUppBorder() - pPage->GetLwrBorder() ); aSize.Height() - pPage->GetUppBorder() - pPage->GetLwrBorder() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment