small fix for primitive

This commit is contained in:
Mario Voigt 2023-08-19 17:46:09 +02:00
parent 85f3281a53
commit 49de97160c

View File

@ -30,7 +30,7 @@ class Primitive (inkex.EffectExtension):
longcolor = int(pickerColor) longcolor = int(pickerColor)
if longcolor < 0: if longcolor < 0:
longcolor = longcolor & 0xFFFFFFFF longcolor = longcolor & 0xFFFFFFFF
return '#' + format(longcolor >> 8, '06X') return format(longcolor >> 8, '06X')
def checkImagePath(self, node): def checkImagePath(self, node):
xlink = node.get('xlink:href') xlink = node.get('xlink:href')
@ -120,7 +120,7 @@ class Primitive (inkex.EffectExtension):
command += " -r " + str(self.options.r) command += " -r " + str(self.options.r)
command += " -s " + str(self.options.s) command += " -s " + str(self.options.s)
command += " -a " + str(self.options.a) 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 += " -bg " + self.rgbToHex(self.options.bg)
command += " -j " + str(self.options.j) command += " -j " + str(self.options.j)
command += " -i " + exportfile command += " -i " + exportfile