fix clippath ids

This commit is contained in:
Laura Klünder 2017-10-20 01:05:35 +02:00
parent 86c9cfa827
commit 518df5c247

View file

@ -146,8 +146,8 @@ class SVGImage:
return element
def register_clip_path(self, geometry):
defid = str(self.clip_path_i)
self.defs += '<clipPath'+self._create_geometry(geometry, ' id="clip'+defid+'"')[2:-2]+'clipPath>'
defid = 'clip'+str(self.clip_path_i)
self.defs += '<clipPath'+self._create_geometry(geometry, ' id="'+defid+'"')[2:-2]+'clipPath>'
self.clip_path_i += 1
return defid