Do not allow negative qty_multiplier

Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
Daniel Rojas 2025-03-01 17:12:24 +01:00
parent e756d62e50
commit fee05a71fc

View File

@ -450,7 +450,7 @@ class Connector(TopLevelGraphicalComponent):
qty_multipliers_computed = {
"PINCOUNT": self.pincount,
"POPULATED": num_populated_pins,
"UNPOPULATED": self.pincount - num_populated_pins,
"UNPOPULATED": max(0, self.pincount - num_populated_pins),
"CONNECTIONS": num_connections,
}
for subitem in self.additional_components: