개정판 f3ba3361
issue #563: fix symbol attr count
Change-Id: I2149ace9b509c0a5eba50c357a1d43ebb3da7010
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
408 | 408 |
[target for target in attr.Target.split(',') if self.dbUid is int(target)]: |
409 | 409 |
targetAttrs.append(attr) |
410 | 410 |
if attr.AttributeType == 'Symbol Item' or attr.AttributeType == 'Line Item' or attr.AttributeType == 'EQ Item' or attr.AttributeType == 'Comp Item': |
411 |
symbol_attr_number = max(symbol_attr_number, int(attr.AttrAt)) + 1
|
|
411 |
symbol_attr_number = max(symbol_attr_number, int(attr.AttrAt)) |
|
412 | 412 |
else: |
413 | 413 |
targetAttrs = symbolAttrs |
414 | 414 | |
415 | 415 |
_texts = self.texts() |
416 |
_symbols = self.symbols(symbol_attr_number) |
|
416 |
_symbols = self.symbols(symbol_attr_number + 1)
|
|
417 | 417 |
for attr in [_attr for _attr in targetAttrs if _attr.AttributeType != 'Combined' and _attr.AttributeType != 'Reference']: |
418 | 418 |
matches = [_attr for _attr, _ in self.attrs.items() if _attr.UID == attr.UID] |
419 | 419 |
if matches: |
내보내기 Unified diff