Check reference designator type when comparing comp

example: prevents a 10K NTC resistor from getting grouped with a 10K SMD resistor

(Cherry-picked from 9ca61b50b6)
This commit is contained in:
Frank Severinsen 2020-05-05 01:25:35 +02:00 committed by Ian McInerney
parent de4c6c6fab
commit fd49bc5d8d
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import sys
import xml.sax as sax
import re
import pdb
import string
#-----<Configure>----------------------------------------------------------------
@ -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):