Code

Extensions. Barcode extension refactoring (see https://code.launchpad.net/~doctormo...
[inkscape.git] / share / extensions / render_barcode.py
index 3de1a07da0c74ede99feb9b8a552fbed3c786c72..ecfe215aa07f48cc0d21e3ccdaf323ff3ad1535a 100644 (file)
@@ -39,15 +39,15 @@ class InsertBarcode(inkex.Effect):
 
        def effect(self):
                x, y = self.view_center
-               object = getBarcode( self.options.type, {
+               bargen = getBarcode( self.options.type, {
                        'text'     : self.options.text,
                        'height'   : self.options.height,
                        'document' : self.document,
                        'x'        : x,
                        'y'        : y,
                } )
-               if object is not None:
-                       barcode = object.generate()
+               if bargen is not None:
+                       barcode = bargen.generate()
                        if barcode is not None:
                                self.current_layer.append(barcode)
                        else: