small fix for primitive

This commit is contained in:
Mario Voigt 2023-08-19 17:46:09 +02:00
parent 85f3281a53
commit 49de97160c
1 changed files with 29 additions and 29 deletions

View File

@ -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