Skip to content

Commit

Permalink
Fixed issue with null values on XY charts due to toArray() fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Feb 16, 2015
1 parent 2e87428 commit ff85450
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file modified dist/CN1aChartEngine.cn1lib
Binary file not shown.
Binary file added src/org/achartengine/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion src/org/achartengine/compat/PathMeasure.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ public PathMeasure(Path p, boolean b) {
forceClosed = b;
}

public int getLength(){
public float getLength(){

return path.path().length();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ public Double[] getYTextLabelLocations() {
* @return the Y text label locations
*/
public synchronized Double[] getYTextLabelLocations(int scale) {
return mYTextLabels.get(scale).keySet().toArray(new Double[mYTextLabels.size()]);
return mYTextLabels.get(scale).keySet().toArray(new Double[mYTextLabels.get(scale).size()]);
}

/**
Expand Down

0 comments on commit ff85450

Please sign in to comment.