Permalink
Browse files

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

  • Loading branch information...
1 parent 3488280 commit e4d8a80c639d59173672634a9acb90c9a4f55c1f @mkrauskopf committed Sep 14, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit e4d8a80

Please sign in to comment.