Skip to content

Commit

Permalink
Merge pull request #65 from hildogjr/patch-2
Browse files Browse the repository at this point in the history
Fix v7.99
  • Loading branch information
MitjaNemec authored Nov 21, 2023
2 parents 62278e9 + 27c3bbd commit 08b17eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions replicate_layout.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# replicate_layout.py
#
# Copyright (C) 2019-2022 Mitja Nemec
# Copyright (C) 2019-2023 Mitja Nemec
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -130,8 +130,8 @@ def __init__(self, board, src_anchor_fp_ref, update_func=update_progress):

sheet_id = self.get_sheet_id(fp)
try:
sheet_file = fp.GetProperty('Sheetfile')
sheet_name = fp.GetProperty('Sheetname')
sheet_file = fp.GetSheetfile()
sheet_name = fp.GetSheetname()
except KeyError:
logger.info("Footprint " + fp.GetReference() +
" does not have Sheetfile property, it will not be replicated."
Expand Down Expand Up @@ -163,8 +163,8 @@ def __init__(self, board, src_anchor_fp_ref, update_func=update_progress):
# construct a list of all the footprints
for fp in footprints:
try:
sheet_file = fp.GetProperty('Sheetfile')
sheet_name = fp.GetProperty('Sheetname')
sheet_file = fp.GetSheetfile()
sheet_name = fp.GetSheetname()
fp_tuple = Footprint(fp=fp,
fp_id=self.get_footprint_id(fp),
sheet_id=self.get_sheet_path(fp)[0],
Expand Down Expand Up @@ -638,7 +638,7 @@ def get_footprint_text_items(footprint):

footprint_items = footprint.fp.GraphicalItems()
for item in footprint_items:
if type(item) is pcbnew.FP_TEXT:
if type(item) is pcbnew.PCB_TEXT:
list_of_items.append(item)
return list_of_items

Expand Down

0 comments on commit 08b17eb

Please sign in to comment.