Skip to content

Commit 49b4d1a

Browse files
committed
Bugfix: Corrected clipRect on the proper rect variable
1 parent fb8094e commit 49b4d1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ protected void drawZeroLine(Canvas c) {
221221
int clipRestoreCount = c.save();
222222
mZeroLineClippingRect.set(mViewPortHandler.getContentRect());
223223
mZeroLineClippingRect.inset(0.f, -mYAxis.getZeroLineWidth() / 2.f);
224-
c.clipRect(mLimitLineClippingRect);
224+
c.clipRect(mZeroLineClippingRect);
225225

226226
// draw zero line
227227
MPPointD pos = mTrans.getPixelForValues(0f, 0f);

0 commit comments

Comments
 (0)