'Rotary Switch (Open)' cannot be selected by clicking on the wafer for 4-pole variations

This commit is contained in:
Bane Stojkovic
2025-12-29 22:58:15 +01:00
parent 6b59966816
commit fa93af2707
2 changed files with 6 additions and 2 deletions
@@ -374,13 +374,13 @@ public class RotarySwitchOpen extends AbstractAngledComponent<RotarySwitchOpenTy
// Draw body
if (componentState != ComponentState.DRAGGING) {
g2d.setColor(outlineMode ? Constants.TRANSPARENT_COLOR : getColor());
drawingObserver.startTracking();
g2d.fill(body[0]);
drawingObserver.stopTracking();
}
g2d.setColor(finalBorderColor);
drawingObserver.startTracking();
g2d.draw(body[0]);
drawingObserver.stopTracking();
// Draw pins
for (int i = 1; i <= secondLevelStart; i++) {