Skip to content

Commit b0387da

Browse files
author
Robert Schmid
committed
Merge branch 'refs/heads/github/philjay/master' into github/rds/opensource
2 parents e562aeb + 73724d1 commit b0387da

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎MPChartLib/src/com/github/mikephil/charting/charts/Chart.java‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,18 +1443,18 @@ public PointF getCenterOffsets() {
14431443
}
14441444

14451445
/**
1446-
* sets the size of the description text in pixels, min 7f, max 14f
1446+
* sets the size of the description text in pixels, min 6f, max 16f
14471447
*
14481448
* @param size
14491449
*/
14501450
public void setDescriptionTextSize(float size) {
14511451

1452-
if (size > 14f)
1453-
size = 14f;
1454-
if (size < 7f)
1455-
size = 7f;
1452+
if (size > 16f)
1453+
size = 16f;
1454+
if (size < 6f)
1455+
size = 6f;
14561456

1457-
mInfoPaint.setTextSize(Utils.convertDpToPixel(size));
1457+
mDescPaint.setTextSize(Utils.convertDpToPixel(size));
14581458
}
14591459

14601460
/**

‎MPChartLib/src/com/github/mikephil/charting/data/ChartData.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public T getDataSetByLabel(String label, boolean ignorecase) {
415415

416416
int index = getDataSetIndexByLabel(mDataSets, label, ignorecase);
417417

418-
if (index <= 0 || index >= mDataSets.size())
418+
if (index < 0 || index >= mDataSets.size())
419419
return null;
420420
else
421421
return mDataSets.get(index);

0 commit comments

Comments
 (0)