Fixed(?) the PCB title block comments numbering is from 0

- Breaking compatibility with older KiCad again
- Disregarding what the file and UI says
This commit is contained in:
Diego Capusotto 2021-12-17 16:55:49 -03:00
parent 69189e661e
commit 285b205af8
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ class GS(object):
def get_pcb_comment(title_block, num):
if GS.ki6(): # pragma: no cover (Ki6)
# Backward compatibility ... what's this?
return title_block.GetComment(num)
# Also: Maintaining the same numbers used before (and found in the file) is asking too much?
return title_block.GetComment(num-1)
if num == 1:
return title_block.GetComment1()
if num == 2: