Bugfix: Corrected clipRect on the proper rect variable

This commit is contained in:
Daniel Cohen Gindi 2016-10-31 12:09:49 +02:00
parent fb8094e9f2
commit 49b4d1a96b

View file

@ -221,7 +221,7 @@ public class YAxisRenderer extends AxisRenderer {
int clipRestoreCount = c.save();
mZeroLineClippingRect.set(mViewPortHandler.getContentRect());
mZeroLineClippingRect.inset(0.f, -mYAxis.getZeroLineWidth() / 2.f);
c.clipRect(mLimitLineClippingRect);
c.clipRect(mZeroLineClippingRect);
// draw zero line
MPPointD pos = mTrans.getPixelForValues(0f, 0f);