Append True to Python 3 AddPrimitivePoly() call

Fixes https://gitlab.com/kicad/code/kicad/issues/11012

(cherry picked from commit b3a319b77e)
This commit is contained in:
Frank Zeeman 2022-03-14 12:54:41 +01:00 committed by Seth Hillbrand
parent 423732910d
commit 4a1abd239a
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)