diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2015-10-20 21:20:32 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2015-10-20 21:20:32 +0000 |
| commit | 12c71f5e63f038d334bd8dfea9a2ab16dc134c50 (patch) | |
| tree | 17c1f34af2fd3812346823d18e7bafe9b859cfa8 /share/extensions/render_barcode_datamatrix.py | |
| parent | Extensions. Move invertTransform() from voronoi2svg.py to shared module simpl... (diff) | |
| download | inkscape-12c71f5e63f038d334bd8dfea9a2ab16dc134c50.tar.gz inkscape-12c71f5e63f038d334bd8dfea9a2ab16dc134c50.zip | |
Extensions. Fix view center for Render extensions applied in transformed layers or groups (bug #1503882)
Fixed bugs:
- https://launchpad.net/bugs/1503882
(bzr r14425.1.2)
Diffstat (limited to 'share/extensions/render_barcode_datamatrix.py')
| -rwxr-xr-x | share/extensions/render_barcode_datamatrix.py | 3 |
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, |
