fix IC pin alignment issue

This commit is contained in:
bancika
2017-04-20 15:25:17 +02:00
parent b3d63e9f22
commit d65609b3d2
8 changed files with 30 additions and 25 deletions
@@ -210,7 +210,7 @@ public class DrawingManager {
failedComponents.add(component);
}
Area area = g2dWrapper.finishedDrawingComponent();
if (trackArea && area != null && !area.isEmpty()) {
if (trackArea && area != null && !area.isEmpty()) {
componentAreaMap.put(component, area);
lastDrawnStateMap.put(component, state);
}
@@ -438,7 +438,8 @@ class G2DWrapper extends Graphics2D implements IDrawingObserver {
public void setStroke(Stroke s) {
if (this.zoom > 1 && s.getClass() == BasicStroke.class) {
BasicStroke bs = (BasicStroke) s;
if (bs.getLineWidth() == 1)
// make thin lines even thinner to compensate for zoom factor
if (bs.getLineWidth() <= 2)
s = ObjectCache.getInstance().fetchBasicStroke((float) (bs.getLineWidth() / zoom));
}
canvasGraphics.setStroke(s);