Skip to content

Commit b122337

Browse files
committed
More
1 parent 21b40f4 commit b122337

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/charts/BarLineChartBase.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,10 +1610,8 @@ public float getYChartMin() {
16101610
public boolean isAnyAxisInverted() {
16111611
if (mAxisLeft.isInverted())
16121612
return true;
1613-
if (mAxisRight.isInverted())
1614-
return true;
1615-
return false;
1616-
}
1613+
return mAxisRight.isInverted();
1614+
}
16171615

16181616
/**
16191617
* Flag that indicates if auto scaling on the y axis is enabled. This is

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ protected void onDraw(Canvas canvas) {
400400
break;
401401

402402
case RIGHT:
403-
pt.x *= 2.0;
403+
pt.x *= 2.0F;
404404
canvas.drawText(mNoDataText, pt.x, pt.y, mInfoPaint);
405405
break;
406406

0 commit comments

Comments
 (0)