mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Viewer: Fix SVG images that use xlink:href to refer to paths not being displayed. Note you will have to reload the book to see the fix. Fixes #1847181 [Private bug](https://bugs.launchpad.net/calibre/+bug/1847181)
This commit is contained in:
parent
32382b7b37
commit
acad92b5a3
@ -437,7 +437,9 @@ class Container(ContainerBase):
|
||||
changed.add(name)
|
||||
xlink = XLINK('href')
|
||||
for elem in xlink_xpath(self.parsed(name)):
|
||||
elem.set(xlink, link_replacer(name, elem.get(xlink)))
|
||||
href = elem.get(xlink)
|
||||
if not href.startswith('#'):
|
||||
elem.set(xlink, link_replacer(name, href))
|
||||
|
||||
for name, amap in iteritems(ltm):
|
||||
for k, v in tuple(iteritems(amap)):
|
||||
|
Loading…
x
Reference in New Issue
Block a user