diff --git a/eeschema/plugins/python_scripts/kicad_netlist_reader.py b/eeschema/plugins/python_scripts/kicad_netlist_reader.py index bf0ed22cb3..e9f83e13f4 100644 --- a/eeschema/plugins/python_scripts/kicad_netlist_reader.py +++ b/eeschema/plugins/python_scripts/kicad_netlist_reader.py @@ -21,6 +21,7 @@ import sys import xml.sax as sax import re import pdb +import string #--------------------------------------------------------------------- @@ -335,7 +336,8 @@ class comp(): result = False if self.getValue() == other.getValue(): if self.getFootprint() == other.getFootprint(): - result = True + if self.getRef().rstrip(string.digits) == other.getRef().rstrip(string.digits): + result = True return result def setLibPart(self, part):