Skip to content

Commit 69a4f3c

Browse files
committed
Fix after rebase master
1 parent 986420d commit 69a4f3c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/YAxisRenderer.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public void renderLimitLines(Canvas c) {
407407
continue;
408408

409409
int clipRestoreCount = c.save();
410-
mLimitLineClippingRect.set(mViewPortHandler.getContentRect());
410+
mLimitLineClippingRect.set(viewPortHandler.getContentRect());
411411
mLimitLineClippingRect.inset(0.f, -l.getLineWidth());
412412
c.clipRect(mLimitLineClippingRect);
413413

@@ -425,24 +425,24 @@ public void renderLimitLines(Canvas c) {
425425
mTrans.pointValuesToPixel(ptsr);
426426
mTrans.pointValuesToPixel(ptsr2);
427427

428-
limitRangePathFill.moveTo(mViewPortHandler.contentLeft(), ptsr[1]);
428+
limitRangePathFill.moveTo(viewPortHandler.contentLeft(), ptsr[1]);
429429
limitRangePathFill.addRect(
430-
mViewPortHandler.contentLeft(),
430+
viewPortHandler.contentLeft(),
431431
ptsr[1],
432-
mViewPortHandler.contentRight(),
432+
viewPortHandler.contentRight(),
433433
ptsr2[1],
434434
Path.Direction.CW
435435
);
436436
c.drawPath(limitRangePathFill, mLimitRangePaintFill);
437437
limitRangePathFill.reset();
438438

439439
if(l.getLineWidth() > 0) {
440-
limitRangePath.moveTo(mViewPortHandler.contentLeft(), ptsr[1]);
441-
limitRangePath.lineTo(mViewPortHandler.contentRight(), ptsr[1]);
440+
limitRangePath.moveTo(viewPortHandler.contentLeft(), ptsr[1]);
441+
limitRangePath.lineTo(viewPortHandler.contentRight(), ptsr[1]);
442442
c.drawPath(limitRangePath, mLimitRangePaint);
443443

444-
limitRangePath.moveTo(mViewPortHandler.contentLeft(), ptsr2[1]);
445-
limitRangePath.lineTo(mViewPortHandler.contentRight(), ptsr2[1]);
444+
limitRangePath.moveTo(viewPortHandler.contentLeft(), ptsr2[1]);
445+
limitRangePath.lineTo(viewPortHandler.contentRight(), ptsr2[1]);
446446
c.drawPath(limitRangePath, mLimitRangePaint);
447447
}
448448

@@ -470,28 +470,28 @@ public void renderLimitLines(Canvas c) {
470470

471471
mLimitRangePaint.setTextAlign(Align.RIGHT);
472472
c.drawText(label,
473-
mViewPortHandler.contentRight() - xOffset,
473+
viewPortHandler.contentRight() - xOffset,
474474
ptsr[1] - yOffset + labelLineHeight, mLimitRangePaint);
475475

476476
} else if (position == LimitLine.LimitLabelPosition.RIGHT_BOTTOM) {
477477

478478
mLimitRangePaint.setTextAlign(Align.RIGHT);
479479
c.drawText(label,
480-
mViewPortHandler.contentRight() - xOffset,
480+
viewPortHandler.contentRight() - xOffset,
481481
ptsr[1] + yOffset, mLimitRangePaint);
482482

483483
} else if (position == LimitLine.LimitLabelPosition.LEFT_TOP) {
484484

485485
mLimitRangePaint.setTextAlign(Align.LEFT);
486486
c.drawText(label,
487-
mViewPortHandler.contentLeft() + xOffset,
487+
viewPortHandler.contentLeft() + xOffset,
488488
ptsr[1] - yOffset + labelLineHeight, mLimitRangePaint);
489489

490490
} else {
491491

492492
mLimitRangePaint.setTextAlign(Align.LEFT);
493493
c.drawText(label,
494-
mViewPortHandler.offsetLeft() + xOffset,
494+
viewPortHandler.offsetLeft() + xOffset,
495495
ptsr[1] + yOffset, mLimitRangePaint);
496496
}
497497
}

0 commit comments

Comments
 (0)