index 77cb3135b5ea40a8e6268cd34de665b40a6ca4c5..ecfe215aa07f48cc0d21e3ccdaf323ff3ad1535a 100644 (file)
+#!/usr/bin/env python
'''
Copyright (C) 2007 Martin Owens
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:
- barcode = object.generate()
- if barcode:
+ if bargen is not None:
+ barcode = bargen.generate()
+ if barcode is not None:
self.current_layer.append(barcode)
else:
sys.stderr.write("No barcode was generated\n")