Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix wrongly painted (left-shifted) minimum and maximum lines

  • Loading branch information...
commit e4d8a80c639d59173672634a9acb90c9a4f55c1f 1 parent 3488280
@mkrauskopf authored
View
4 source/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java
@@ -841,11 +841,11 @@ public void drawVerticalItem(Graphics2D g2, CategoryItemRendererState state,
}
// draw the upper shadow...
g2.draw(new Line2D.Double(xxmid, yyMax, xxmid, yyQ3));
- g2.draw(new Line2D.Double(xx - halfW, yyMax, xx + halfW, yyMax));
+ g2.draw(new Line2D.Double(xxmid - halfW, yyMax, xxmid + halfW, yyMax));
// draw the lower shadow...
g2.draw(new Line2D.Double(xxmid, yyMin, xxmid, yyQ1));
- g2.draw(new Line2D.Double(xx - halfW, yyMin, xx + halfW, yyMin));
+ g2.draw(new Line2D.Double(xxmid - halfW, yyMin, xxmid + halfW, yyMin));
g2.setStroke(getItemOutlineStroke(row, column));
g2.setPaint(outlinePaint);
Please sign in to comment.
Something went wrong with that request. Please try again.