Render capacitor polarity markings properly when zommed in

This commit is contained in:
Branislav Stojkovic
2019-01-09 16:09:07 +01:00
parent 54e97b9adc
commit a6538947d0
4 changed files with 3 additions and 3 deletions
@@ -206,7 +206,7 @@ public class AxialElectrolyticCapacitor extends AbstractLeadedComponent<Capacita
finalTickColor = tickColor;
}
g2d.setColor(finalTickColor);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(2));
g2d.setStroke(ObjectCache.getInstance().fetchZoomableStroke(2));
g2d.drawLine((int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 - width * 0.15),
(int) getLength().convertToPixels() - markerLength / 2, (int) (width / 2 + width * 0.15));
} else {
@@ -172,7 +172,7 @@ public class RadialElectrolytic extends AbstractRadialComponent<Capacitance> {
finalTickColor = tickColor;
}
g2d.setColor(finalTickColor);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(2));
g2d.setStroke(ObjectCache.getInstance().fetchZoomableStroke(2));
if (folded) {
int tickLength = height / 7;
for (int i = 0; i < 3; i++) {