File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
MPChartLib/src/com/github/mikephil/charting/charts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1345,7 +1345,7 @@ public int getLowestVisibleXIndex() {
13451345 mViewPortHandler .contentLeft (), mViewPortHandler .contentBottom ()
13461346 };
13471347 getTransformer (AxisDependency .LEFT ).pixelsToValue (pts );
1348- return (pts [0 ] <= 0 ) ? 0 : (int ) (pts [0 ] + 1.0f );
1348+ return (pts [0 ] <= 0 ) ? 0 : (int )Math . ceil (pts [0 ]);
13491349 }
13501350
13511351 /**
@@ -1360,7 +1360,7 @@ public int getHighestVisibleXIndex() {
13601360 mViewPortHandler .contentRight (), mViewPortHandler .contentBottom ()
13611361 };
13621362 getTransformer (AxisDependency .LEFT ).pixelsToValue (pts );
1363- return ( pts [ 0 ] >= mData . getXValCount ()) ? mData .getXValCount () - 1 : (int ) pts [0 ];
1363+ return Math . min ( mData .getXValCount () - 1 , (int )Math . floor ( pts [0 ])) ;
13641364 }
13651365
13661366 /**
You can’t perform that action at this time.
0 commit comments