fix in bbox adjuster

This commit is contained in:
Mario Voigt 2021-10-20 22:02:21 +02:00
parent 3ed7e2ae3a
commit 4448e03b49

View File

@ -91,8 +91,7 @@ class EpilogDashboardBboxAdjust(inkex.EffectExtension):
mat = Transform("translate(%f, %f)" % (-bbox.left,-bbox.top)) mat = Transform("translate(%f, %f)" % (-bbox.left,-bbox.top))
for element in self.document.getroot().iter("*"): for element in self.document.getroot().iter("*"):
if isinstance (element, inkex.ShapeElement) and element.tag != inkex.addNS('g', 'svg'): if isinstance (element, inkex.ShapeElement) and element.tag != inkex.addNS('g', 'svg'):
element.transform = Transform(mat) * element.transform element.transform = Transform(mat) * element.composed_transform()
#element.transform = Transform(element.composed_transform().add_matrix(mat)) * element.transform
if self.options.removal == "outside_canvas": if self.options.removal == "outside_canvas":
for element in self.document.getroot().iter("*"): for element in self.document.getroot().iter("*"):