Kaydet (Commit) 623f6d1c authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unconditionally enabled _SVG_WRITE_EXTENTS flag

Change-Id: I0bcf1e4929c4bdc0781637dfe95a8a7b47554430
üst 2d42a1bc
...@@ -764,11 +764,9 @@ bool SVGFilter::implExportDocument() ...@@ -764,11 +764,9 @@ bool SVGFilter::implExportDocument()
if( mpSVGExport->IsUseTinyProfile() ) if( mpSVGExport->IsUseTinyProfile() )
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "baseProfile", "tiny" ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "baseProfile", "tiny" );
// enabling _SVG_WRITE_EXTENTS means that the slide size is not adapted // The following if block means that the slide size is not adapted
// to the size of the browser window, moreover the slide is top left aligned // to the size of the browser window, moreover the slide is top left aligned
// instead of centered. // instead of centered:
#define _SVG_WRITE_EXTENTS
#ifdef _SVG_WRITE_EXTENTS
if( !mbPresentation ) if( !mbPresentation )
{ {
aAttr = OUString::number( nDocWidth * 0.01 ) + "mm"; aAttr = OUString::number( nDocWidth * 0.01 ) + "mm";
...@@ -777,7 +775,6 @@ bool SVGFilter::implExportDocument() ...@@ -777,7 +775,6 @@ bool SVGFilter::implExportDocument()
aAttr = OUString::number( nDocHeight * 0.01 ) + "mm"; aAttr = OUString::number( nDocHeight * 0.01 ) + "mm";
mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "height", aAttr ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "height", aAttr );
} }
#endif
// #i124608# set viewBox explicitely to the exported content // #i124608# set viewBox explicitely to the exported content
if (mbExportShapeSelection) if (mbExportShapeSelection)
......
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