mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix an error rendering books with svg images
This commit is contained in:
parent
b77091f191
commit
a9a4d8b190
@ -355,7 +355,7 @@ class Container(ContainerBase):
|
|||||||
changed.add(name)
|
changed.add(name)
|
||||||
elif mt == 'image/svg+xml':
|
elif mt == 'image/svg+xml':
|
||||||
self.virtualized_names.add(name)
|
self.virtualized_names.add(name)
|
||||||
changed = False
|
changed.add(name)
|
||||||
xlink = XLINK('href')
|
xlink = XLINK('href')
|
||||||
for elem in xlink_xpath(self.parsed(name)):
|
for elem in xlink_xpath(self.parsed(name)):
|
||||||
elem.set(xlink, link_replacer(name, elem.get(xlink)))
|
elem.set(xlink, link_replacer(name, elem.get(xlink)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user