Skip to content

Commit

Permalink
fixed files form Chart #15
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent d6cb466 commit 2367ec5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions projects/Chart/15/org/jfree/chart/plot/PiePlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,9 @@ public void setExplodePercent(Comparable key, double percent) {
* @return The percent.
*/
public double getMaximumExplodePercent() {
if (this.dataset == null) {
return 0.0;
}
double result = 0.0;
Iterator iterator = this.dataset.getKeys().iterator();
while (iterator.hasNext()) {
Expand Down Expand Up @@ -2048,8 +2051,10 @@ public PiePlotState initialise(Graphics2D g2, Rectangle2D plotArea,

PiePlotState state = new PiePlotState(info);
state.setPassesRequired(2);
if (this.dataset != null) {
state.setTotal(DatasetUtilities.calculatePieDatasetTotal(
plot.getDataset()));
}
state.setLatestAngle(plot.getStartAngle());
return state;

Expand Down

0 comments on commit 2367ec5

Please sign in to comment.