Re: [cp-patches] FYI: Fix for PR34991

2009-01-07 Thread Roman Kennke
Hi, -draw(new Polygon(xPoints, yPoints, nPoints)); +for (int i = 1; i nPoints; i++) + draw(new Line2D.Double(xPoints[i - 1], yPoints[i - 1], + xPoints[i], yPoints[i])); Hi Robert, Line2D instances are mutable (via setLine() methods) so

Re: [cp-patches] FYI: Fix for PR34991

2009-01-07 Thread Robert Schuster
Hi, thanks for the hint I will rework it that way. Regards Robert David Gilbert schrieb: Robert Schuster wrote: -draw(new Polygon(xPoints, yPoints, nPoints)); +for (int i = 1; i nPoints; i++) + draw(new Line2D.Double(xPoints[i - 1], yPoints[i - 1], +

[cp-patches] FYI: Fix for PR34991

2009-01-06 Thread Robert Schuster
Hi, it was already asked whether this patch has been applied. Now it is. :) Regards Robert 2009-01-05 Robert Schuster robertschus...@fsfe.org * gnu/java/awt/peer/gtk/CairoGraphics2D.java: (drawPolyline): Rewritten. Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java

Re: [cp-patches] FYI: Fix for PR34991

2009-01-06 Thread David Gilbert
Robert Schuster wrote: -draw(new Polygon(xPoints, yPoints, nPoints)); +for (int i = 1; i nPoints; i++) + draw(new Line2D.Double(xPoints[i - 1], yPoints[i - 1], + xPoints[i], yPoints[i])); Hi Robert, Line2D instances are mutable (via setLine() methods)