Preview throws an Exception with negative edges

Bug #656955 reported by Mathieu Bastian on 2010-10-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Fix Released
Medium
Mathieu Bastian
0.7
Fix Released
Medium
Unassigned

Bug Description

Negative edges weight throws the following exception in Preview:

java.lang.IllegalArgumentException: negative width
 at java.awt.BasicStroke.<init>(BasicStroke.java:181)
 at java.awt.BasicStroke.<init>(BasicStroke.java:254)
 at processing.core.PGraphicsJava2D.strokeImpl(PGraphicsJava2D.java:1417)
 at processing.core.PGraphicsJava2D.strokeWeight(PGraphicsJava2D.java:1398)
 at processing.core.PApplet.strokeWeight(PApplet.java:7757)
 at org.gephi.desktop.preview.ProcessingPreview.renderEdge(ProcessingPreview.java:370)
 at org.gephi.desktop.preview.ProcessingPreview.renderDirectedEdge(ProcessingPreview.java:362)
 at org.gephi.desktop.preview.ProcessingPreview.renderGraphBidirectionalEdges(ProcessingPreview.java:246)
 at org.gephi.desktop.preview.ProcessingPreview.renderGraphEdges(ProcessingPreview.java:224)
 at org.gephi.desktop.preview.ProcessingPreview.renderGraph(ProcessingPreview.java:210)
 at org.gephi.desktop.preview.ProcessingPreview.draw(ProcessingPreview.java:88)
 at processing.core.PApplet.handleDraw(PApplet.java:1425)
 at processing.core.PApplet.run(PApplet.java:1327)

Fixed in rev 1974

Changed in gephi:
status: Confirmed → Fix Committed
Changed in gephi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers