mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
fix IC pin alignment issue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user