small fix for primitive
This commit is contained in:
parent
85f3281a53
commit
49de97160c
@ -30,7 +30,7 @@ class Primitive (inkex.EffectExtension):
|
||||
longcolor = int(pickerColor)
|
||||
if longcolor < 0:
|
||||
longcolor = longcolor & 0xFFFFFFFF
|
||||
return '#' + format(longcolor >> 8, '06X')
|
||||
return format(longcolor >> 8, '06X')
|
||||
|
||||
def checkImagePath(self, node):
|
||||
xlink = node.get('xlink:href')
|
||||
@ -120,7 +120,7 @@ class Primitive (inkex.EffectExtension):
|
||||
command += " -r " + str(self.options.r)
|
||||
command += " -s " + str(self.options.s)
|
||||
command += " -a " + str(self.options.a)
|
||||
if not self.options.bg_enabled:
|
||||
if self.options.bg_enabled:
|
||||
command += " -bg " + self.rgbToHex(self.options.bg)
|
||||
command += " -j " + str(self.options.j)
|
||||
command += " -i " + exportfile
|
||||
|
Loading…
Reference in New Issue
Block a user