Skip to content

Commit

Permalink
fix nand gate exception on small grid when stopped (sharpie7#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalstad committed Oct 24, 2024
1 parent 331f4e5 commit 0e16845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/lushprojects/circuitjs1/client/AndGateElm.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public AndGateElm(int xa, int ya, int xb, int yb, int f,
String getGateText() { return "&"; }

public final native void ellipse(Context2d g, double x, double y, double rx, double ry, double ro, double sa, double ea, boolean ccw) /*-{
g.ellipse(x, y, rx, ry, ro, sa, ea, ccw);
if (rx >= 0 && ry >= 0) g.ellipse(x, y, rx, ry, ro, sa, ea, ccw);
}-*/;

void drawGatePolygon(Graphics g) {
Expand Down

0 comments on commit 0e16845

Please sign in to comment.