Skip to content

Commit 478e0a5

Browse files
hansonrhansonr
authored andcommitted
drawn point should not set background painted -
still something wrong there. Why are we checking this at all?
1 parent 6a43f87 commit 478e0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/net.sf.j2s.java.core/src/swingjs/JSGraphics2D.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void drawLine(int x0, int y0, int x1, int y1) {
162162
if (!inPath) {
163163
if (x0 == x1 && y0 == y1) {
164164
// meaning is to draw a point
165-
fillRect(x0, y0, 1, 1);
165+
ctx.fillRect(x0, y0, 1, 1);
166166
return;
167167
}
168168
doStroke(true);

0 commit comments

Comments
 (0)