sw HTML import: fix height of images when it is missing and width is relative
commit2e6144fc350fd94f8e66be5a9007c7f06c0213e0
authorMiklos Vajna <vmiklos@collabora.com>
Mon, 19 Sep 2022 14:08:25 +0000 (19 16:08 +0200)
committerMiklos Vajna <vmiklos@collabora.com>
Mon, 19 Sep 2022 19:14:41 +0000 (19 21:14 +0200)
treed1e26fa06fb5342a50ea9bf8664732c67fe58064
parent60585bb65330ad703b5683aece1564dfc6301436
sw HTML import: fix height of images when it is missing and width is relative

This is similar to commit 456abae730a787693c3ad98f7e57eba5f6163a76 (sw
HTML import: fix height of OLE objs when it is missing and width is
relative, 2022-09-06), but this is for images, while that was for OLE
objects.

The idea is still that in case only axis is specified in the HTML and
that's a relative percentage, then the ratio should be taken from the
bitmap and it should be kept.

Change-Id: I36184ff6531bff2775013462cd8cc711e1a249c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140178
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
sw/qa/filter/html/data/relative-keep-aspect-image.xhtml [new file with mode: 0644]
sw/qa/filter/html/html.cxx
sw/source/filter/html/htmlgrin.cxx