summaryrefslogtreecommitdiff
path: root/sc/uiconfig/scalc/popupmenu/colheader.xml
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-12-02 16:57:30 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-12-02 11:10:34 +0100
commitf5cf0c10eb7050feff19190b06b4597aab2d400a (patch)
tree31d51383a991194f5d6877db8a83344e988ec2d7 /sc/uiconfig/scalc/popupmenu/colheader.xml
parente320518eaf4c402bbbb37ed564e645659165f4f7 (diff)
tdf#123396 actually use the mimetype set in the from document
In the document we set the mime type for the images stored, but at import we never actually used the mime types. We always did mime type detection from the filename extension. The problem with this is that files stored as base64 streams don't have a filename so it is also not possible to determine the mime type from the file name. The consequence of this is that we can't know which image to take if we have multiple images (fallback images) so we always take the last one, which could be the wrong one. This happend in the test document. This changes the behavior so that we always first use the document set mime type as there is no reason to not trust that. Only if the mime type isn't provided by the document we use other mime type detection methods. Change-Id: I175c509ce5f11eab2c0454d4d9901ca1fe975272 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160237 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sc/uiconfig/scalc/popupmenu/colheader.xml')
0 files changed, 0 insertions, 0 deletions