Fixed the offset of terminals on a DP4T Tele type of 'Lever Switch' to be aligned with the physical switch

This commit is contained in:
Bane Stojkovic
2026-01-05 21:30:13 +01:00
parent 3376aa995a
commit 344c238f73
2 changed files with 6 additions and 1 deletions
@@ -321,7 +321,8 @@ public class LeverSwitch extends AbstractAngledComponent<LeverSwitch.LeverSwitch
case DP4T:
controlPoints = new Point2D[10];
for (int i = 0; i < controlPoints.length; i++) {
controlPoints[i] = new Point2D.Double(x + (i % 2 == 1 ? terminalLength : 0), y + i * terminalSpacing);
double yPos = i % 2 == 1 ? y + (i - 2) * terminalSpacing : y + i * terminalSpacing;
controlPoints[i] = new Point2D.Double(x + (i % 2 == 1 ? terminalLength : 0), yPos);
}
break;
case DP5T: