mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
5622308ba2
Both issues from the review, preview of empty contact comb slots only: - Slice the flat label list over the declared poles in drawAsContacts (terminals per pole from labels.size()/contactCount) instead of a fixed stride of 2 (3 for a switch) inside drawContact: terminalCount and contactCount are edited independently, so with 3 poles and the default terminal count of 2 the fixed stride starved every pole but the first. Available labels are now distributed across the poles. - Map changeover labels of a slot to their own position always (common=stored[0] right, NC=stored[1] bottom-left, NO=stored[2] top-left, missing entries stay empty) instead of falling back to the raw stored order, which put the numbers on the wrong contact halves when the terminal count was below three. - Element editor: changing the contact count now keeps the terminal count in step (same terminals per contact, type default 2/3 for inconsistent data, minimum 3 for a switch), so the mismatch cannot be created anymore; legacy mismatched data is handled by the new slicing. - Drop the now redundant elmt check before is_power_ctc (it already includes it) - the dead null check from the review.