Do not allow negative qty_multiplier
Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
parent
e756d62e50
commit
fee05a71fc
@ -450,7 +450,7 @@ class Connector(TopLevelGraphicalComponent):
|
|||||||
qty_multipliers_computed = {
|
qty_multipliers_computed = {
|
||||||
"PINCOUNT": self.pincount,
|
"PINCOUNT": self.pincount,
|
||||||
"POPULATED": num_populated_pins,
|
"POPULATED": num_populated_pins,
|
||||||
"UNPOPULATED": self.pincount - num_populated_pins,
|
"UNPOPULATED": max(0, self.pincount - num_populated_pins),
|
||||||
"CONNECTIONS": num_connections,
|
"CONNECTIONS": num_connections,
|
||||||
}
|
}
|
||||||
for subitem in self.additional_components:
|
for subitem in self.additional_components:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user