mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:53:37 +02:00
Fix an error rendering books with svg images
This commit is contained in:
parent
b77091f191
commit
a9a4d8b190
1 changed files with 1 additions and 1 deletions
|
|
@ -355,7 +355,7 @@ def link_replacer(base, url):
|
|||
changed.add(name)
|
||||
elif mt == 'image/svg+xml':
|
||||
self.virtualized_names.add(name)
|
||||
changed = False
|
||||
changed.add(name)
|
||||
xlink = XLINK('href')
|
||||
for elem in xlink_xpath(self.parsed(name)):
|
||||
elem.set(xlink, link_replacer(name, elem.get(xlink)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue