summaryrefslogtreecommitdiffstats
path: root/share/extensions/render_barcode_datamatrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/render_barcode_datamatrix.py')
-rwxr-xr-xshare/extensions/render_barcode_datamatrix.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/extensions/render_barcode_datamatrix.py b/share/extensions/render_barcode_datamatrix.py
index 2d28bb433..bca1d2241 100755
--- a/share/extensions/render_barcode_datamatrix.py
+++ b/share/extensions/render_barcode_datamatrix.py
@@ -665,6 +665,7 @@ class DataMatrix(inkex.Effect):
def effect(self):
+ scale = self.unittouu('1px') # convert to document units
so = self.options
rows = so.ROWS
@@ -680,7 +681,7 @@ class DataMatrix(inkex.Effect):
#INKSCAPE GROUP TO CONTAIN EVERYTHING
centre = self.view_center #Put in in the centre of the current view
- grp_transform = 'translate' + str( centre )
+ grp_transform = 'translate' + str( centre ) + ' scale(%f)' % scale
grp_name = 'DataMatrix'
grp_attribs = {inkex.addNS('label','inkscape'):grp_name,
'transform':grp_transform }