Skip to content

Commit

Permalink
NPE fix for Donut PiePlot in pointRenderers
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Karaman authored and eseifert committed Sep 21, 2017
1 parent 6ca80bf commit a5f115c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -915,9 +915,11 @@ public void add(int index, DataSource source, boolean visible) {
throw new IllegalArgumentException(
"This plot type only supports a single data source."); //$NON-NLS-1$
}
super.add(index, source, visible);

PointRenderer pointRendererDefault = new PieSliceRenderer(this);
setPointRenderer(source, pointRendererDefault);

super.add(index, source, visible);
setMapping(source, AXIS_TANGENTIAL);
}

Expand Down

0 comments on commit a5f115c

Please sign in to comment.