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.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.py')
| -rwxr-xr-x | share/extensions/render_barcode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/extensions/render_barcode.py b/share/extensions/render_barcode.py index 694dcc8f3..4f1464a92 100755 --- a/share/extensions/render_barcode.py +++ b/share/extensions/render_barcode.py @@ -24,6 +24,7 @@ Barcode module provided for outside or scripting. import inkex import sys from Barcode import getBarcode +from simpletransform import computePointInNode class InsertBarcode(inkex.Effect): def __init__(self): @@ -42,7 +43,7 @@ class InsertBarcode(inkex.Effect): help="Text to print on barcode") def effect(self): - x, y = self.view_center + x, y = computePointInNode(list(self.view_center), self.current_layer) bargen = getBarcode( self.options.type, text=self.options.text, height=self.options.height, |
