From 259a8e59107bb0a3d4f4f4bb7e056ce1e4231da2 Mon Sep 17 00:00:00 2001 From: Tünde Tóth Date: Thu, 3 Feb 2022 15:13:33 +0100 Subject: tdf#128596 PPTX import: fix default tiled bitmap fill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OOXML bitmap fill element a:blipFill has got default tiled area setting without explicit a:tile in MSO. Previous import of bitmap fill as "BitmapMode_NO_REPEAT" instead of BitmapMode_REPEAT resulted missing or incomplete area fill of shapes and other objects. Change-Id: Idf94f4450980f67172a0126784b3e08cc5c178c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129483 Tested-by: László Németh Reviewed-by: László Németh --- oox/source/drawingml/fillproperties.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/drawingml/fillproperties.cxx b/oox/source/drawingml/fillproperties.cxx index 2b682bcd1b99..49906cc9b10f 100644 --- a/oox/source/drawingml/fillproperties.cxx +++ b/oox/source/drawingml/fillproperties.cxx @@ -221,7 +221,9 @@ BitmapMode lclGetBitmapMode( sal_Int32 nToken ) case XML_tile: return BitmapMode_REPEAT; case XML_stretch: return BitmapMode_STRETCH; } - return BitmapMode_NO_REPEAT; + + // tdf#128596 Default value is XML_tile for MSO. + return BitmapMode_REPEAT; } RectanglePoint lclGetRectanglePoint( sal_Int32 nToken ) -- cgit