Docx reader: don't look to ext tags for image extent.

This was added in 7ff1b798c4
but was mistaken and could cause images to be parsed with
the wrong sizes.

Closes  #11580.
This commit is contained in:
John MacFarlane
2026-04-13 12:04:02 +02:00
parent f3c3cf77f0
commit 3fc374908c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1234,7 +1234,7 @@ elemToExtent el =
(Just w, Just h) -> Just (w, h)
_ -> Nothing
where
getDim at = filterElementName (\n -> qName n `elem` ["extent", "ext"]) el
getDim at = filterElementName (\n -> qName n == "extent") el
>>= findAttr (QName at Nothing Nothing) >>= safeRead
+1 -1
View File
@@ -3,7 +3,7 @@
^D
<p>Lorem ipsum.</p>
<figure>
<img src="media/image1.png" style="width:1.10263in;height:1.10263in" />
<img src="media/image1.png" style="width:1.09702in;height:1.09702in" />
<figcaption><p>Blue square.</p></figcaption>
</figure>
```