fix clippath ids
This commit is contained in:
parent
86c9cfa827
commit
518df5c247
1 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,8 @@ class SVGImage:
|
||||||
return element
|
return element
|
||||||
|
|
||||||
def register_clip_path(self, geometry):
|
def register_clip_path(self, geometry):
|
||||||
defid = str(self.clip_path_i)
|
defid = 'clip'+str(self.clip_path_i)
|
||||||
self.defs += '<clipPath'+self._create_geometry(geometry, ' id="clip'+defid+'"')[2:-2]+'clipPath>'
|
self.defs += '<clipPath'+self._create_geometry(geometry, ' id="'+defid+'"')[2:-2]+'clipPath>'
|
||||||
self.clip_path_i += 1
|
self.clip_path_i += 1
|
||||||
return defid
|
return defid
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue