diff options
author | Balazs Varga <balazs.varga.extern@allotropia.de> | 2023-10-26 18:11:40 +0200 |
---|---|---|
committer | Balazs Varga <balazs.varga.extern@allotropia.de> | 2023-10-27 12:28:56 +0200 |
commit | c3ce373227433f40d686847a22e78651bedbab24 (patch) | |
tree | b5cf4eb0d578c0ab5d93f36e4a9742da7acac504 /include/oox/helper | |
parent | 819f87faee0e8d629f5176a107e4b07422abea73 (diff) |
tdf#156593 FILEOPEN OOXML: image shown in full instead of cropped
Revert "Revert "tdf#118133 DOCX import: disable lazy-loading of tiff images""
This reverts commit c6bf16909db054ec5467ebdc0ea0c9dc07307048.
Lazy-loading doesn't work with cropped TIFF images, because in case of Lazy-load TIFF images
we are using MapUnit::MapPixel, but in case of cropped images we are using MapUnit::Map100thMM
and the crop values are relative to original bitmap size.
Change-Id: I2dbf6caf08d7899ec2eae683996d997809d62b89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158509
Tested-by: Jenkins
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Diffstat (limited to 'include/oox/helper')
-rw-r--r-- | include/oox/helper/graphichelper.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oox/helper/graphichelper.hxx b/include/oox/helper/graphichelper.hxx index 32e699ed3468..0d0b69216617 100644 --- a/include/oox/helper/graphichelper.hxx +++ b/include/oox/helper/graphichelper.hxx @@ -121,7 +121,8 @@ public: css::uno::Reference< css::graphic::XGraphic > importGraphic( const css::uno::Reference< css::io::XInputStream >& rxInStrm, - const WmfExternal* pExtHeader = nullptr ) const; + const WmfExternal* pExtHeader = nullptr, + const bool bLazyLoad = true ) const; /** Imports a graphic from the passed binary memory block. */ css::uno::Reference< css::graphic::XGraphic > |