diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-22 09:19:00 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-22 11:02:27 +0100 |
commit | a02ea004c35edeb4e93b1cdcaa087e8bdcf1ee47 (patch) | |
tree | a5be6b9fb9582b4b3ef378dda0b13a8b576f2c51 /oox | |
parent | 71e40f6a3cb4c05e267910ae296b52109096409c (diff) |
PPTX export: fix size of shape for slide narrations
This was invisible in PowerPoint without explicit stretching.
Change-Id: I29b9f23eba6d59436cb1b6d15c9840794f932e69
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109778
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/shapes.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 9033e1d40d88..13c52d22c56e 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -1238,6 +1238,14 @@ void ShapeExport::WriteGraphicObjectShapePart( const Reference< XShape >& xShape if ( pGraphic || bStretch ) pFS->singleElementNS(XML_a, XML_stretch); + if (bHasMediaURL) + { + // Graphic of media shapes is always stretched. + pFS->startElementNS(XML_a, XML_stretch); + pFS->singleElementNS(XML_a, XML_fillRect); + pFS->endElementNS(XML_a, XML_stretch); + } + pFS->endElementNS( mnXmlNamespace, XML_blipFill ); // visual shape properties |