Append True to Python 3 AddPrimitivePoly() call

Fixes https://gitlab.com/kicad/code/kicad/issues/11012
This commit is contained in:
Frank Zeeman
2022-03-18 20:00:32 +00:00
committed by Seth Hillbrand
parent 5aa561abe1
commit b3a319b77e
+1 -1
View File
@@ -35,7 +35,7 @@
# define it for compatibility
def AddPrimitive(self, *args):
if len(args) == 2:
return self.AddPrimitivePoly(*args)
return self.AddPrimitivePoly(*args, True)
elif len(args) == 3:
if type(args[1] in [wxPoint,wxSize]):
return self.AddPrimitiveSegment(*args)