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-14 12:54:41 +01:00 committed by Seth Hillbrand
parent 5aa561abe1
commit b3a319b77e
1 changed files with 1 additions and 1 deletions

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)