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 83d009db8..72ffddbe6 100755
--- a/share/extensions/render_barcode_datamatrix.py
+++ b/share/extensions/render_barcode_datamatrix.py
@@ -54,6 +54,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# local library
import inkex
import simplestyle
+from simpletransform import computePointInNode
inkex.localize()
@@ -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
+ centre = tuple(computePointInNode(list(self.view_center), self.current_layer)) #Put in in the centre of the current view
grp_transform = 'translate' + str( centre ) + ' scale(%f)' % scale
grp_name = 'DataMatrix'
grp_attribs = {inkex.addNS('label','inkscape'):grp_name,