This commit is contained in:
Bane Stojkovic
2025-02-09 21:51:49 +01:00
parent 88ded5eb0d
commit 40851b4a62
@@ -268,7 +268,7 @@ public class PCBTerminalBlock extends AbstractTransparentComponent<PCBTerminalBl
int pointCount = count.getCount(); int pointCount = count.getCount();
int width = (int) getWidth().convertToPixels(); int width = (int) getWidth().convertToPixels();
int offset; int offset;
if (getScrewPosition() == ScrewPosition.Central) { if (getScrewPosition() == ScrewPosition.Center) {
offset = (int) (getWidth().convertToPixels() / 2); offset = (int) (getWidth().convertToPixels() / 2);
} else { } else {
offset = (int) ((getWidth().convertToPixels() - getPitch().convertToPixels()) + getPitch().convertToPixels() / 2); offset = (int) ((getWidth().convertToPixels() - getPitch().convertToPixels()) + getPitch().convertToPixels() / 2);
@@ -371,6 +371,6 @@ public class PCBTerminalBlock extends AbstractTransparentComponent<PCBTerminalBl
} }
static enum ScrewPosition { static enum ScrewPosition {
Central, Offset; Center, Offset;
} }
} }