개정판 8de1042d
fix size
Change-Id: I3985138c4dc53bf7bc7288f99d8be84fa25708b5
DTI_PID/DTI_PID/Shapes/EngineeringAbstractItem.py | ||
---|---|---|
525 | 525 |
# return '' |
526 | 526 |
# #return AppDocData.instance().drain_size |
527 | 527 |
|
528 |
if self.owner.runs and self in self.owner.runs[0].items: |
|
529 |
self.sizeDepth = 0 |
|
530 |
return self.owner.Size |
|
531 |
elif self.sizeDepth < 2: |
|
532 |
connected_items = self.find_connected_objects_size(self) |
|
528 |
connected_items = self.find_connected_objects_size(self) |
|
529 |
if self.sizeDepth < 2: |
|
533 | 530 |
if connected_items: |
534 | 531 |
at = connected_items.index(self) |
535 | 532 |
upstream = connected_items[:at] |
... | ... | |
576 | 573 |
self.sizeDepth = 0 |
577 | 574 |
return item.Size |
578 | 575 |
prev = item |
579 |
|
|
576 |
elif self.owner.runs and self in self.owner.runs[0].items: |
|
577 |
self.sizeDepth = 0 |
|
578 |
return self.owner.Size |
|
579 |
elif self.sizeDepth < 2: |
|
580 |
if connected_items: |
|
580 | 581 |
res1 = None |
581 | 582 |
res2 = None |
582 | 583 |
if type(connected_items[0]) is QEngineeringLineItem: |
내보내기 Unified diff