Open the bugdoc, the music notes picture inside is not readable. This went wrong in commitedda1e5fc8(DOCX import: lazy-read images without external headers, 2018-04-20), and later commitc3ce373227(tdf#156593 FILEOPEN OOXML: image shown in full instead of cropped, 2023-10-27) fixed a similar problem, this bugdoc is still bad. Note how the second commit looks for the .tiff extension, while this bugdoc has a .TIF image. Fix the problem by looking for both extensions, in a case-insensitive way. A future possibility would be to improve OInputCompStream's XPropertySet implementation, so next to its Compressed and Size properties, it would also expose the image/tiff MIME type, and then we would not have to guess content based on the file extension. Change-Id: I81519119bae698bf1cca34792fcf1aa6587b48a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195542 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_Module_Module,oox))
|
|
|
|
$(eval $(call gb_Module_add_targets,oox,\
|
|
CustomTarget_generated \
|
|
))
|
|
|
|
ifeq ($(gb_Side),host)
|
|
$(eval $(call gb_Module_add_targets,oox,\
|
|
Library_oox \
|
|
Package_customshapes \
|
|
Package_generated \
|
|
))
|
|
|
|
$(eval $(call gb_Module_add_l10n_targets,oox,\
|
|
AllLangMoTarget_oox \
|
|
))
|
|
|
|
$(eval $(call gb_Module_add_check_targets,oox,\
|
|
CppunitTest_oox_tokenmap \
|
|
CppunitTest_oox_vba_compression \
|
|
CppunitTest_oox_vba_encryption \
|
|
CppunitTest_oox_crypto \
|
|
CppunitTest_oox_mathml \
|
|
CppunitTest_oox_drawingml \
|
|
CppunitTest_oox_vml \
|
|
CppunitTest_oox_shape \
|
|
CppunitTest_oox_export \
|
|
CppunitTest_oox_mcgr \
|
|
CppunitTest_oox_testscene3d \
|
|
CppunitTest_oox_wpc_drawing_canvas \
|
|
CppunitTest_oox_helper \
|
|
))
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|