Skip to content

Commit

Permalink
Merge pull request #3820 from longup/master
Browse files Browse the repository at this point in the history
Fix last entry clipping bug #3819
  • Loading branch information
almic authored May 2, 2018
2 parents 5519c51 + aee6058 commit 640208c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected void drawLabels(Canvas c, float pos, MPPointF anchor) {
if (mXAxis.isAvoidFirstLastClippingEnabled()) {

// avoid clipping of the last
if (i == mXAxis.mEntryCount - 1 && mXAxis.mEntryCount > 1) {
if (i / 2 == mXAxis.mEntryCount - 1 && mXAxis.mEntryCount > 1) {
float width = Utils.calcTextWidth(mAxisLabelPaint, label);

if (width > mViewPortHandler.offsetRight() * 2
Expand Down

0 comments on commit 640208c

Please sign in to comment.