@@ -89,13 +89,13 @@ protected void drawDataSet(Canvas c, IBarDataSet dataSet, int index) {
8989
9090 trans .rectValueToPixel (mBarShadowRectBuffer );
9191
92- if (!viewPortHandler .isInBoundsTop (mBarShadowRectBuffer .bottom )) {
93- continue ;
94- }
92+ if (!viewPortHandler .isInBoundsTop (mBarShadowRectBuffer .bottom )) {
93+ continue ;
94+ }
9595
96- if (!viewPortHandler .isInBoundsBottom (mBarShadowRectBuffer .top )) {
97- break ;
98- }
96+ if (!viewPortHandler .isInBoundsBottom (mBarShadowRectBuffer .top )) {
97+ break ;
98+ }
9999
100100 mBarShadowRectBuffer .left = viewPortHandler .contentLeft ();
101101 mBarShadowRectBuffer .right = viewPortHandler .contentRight ();
@@ -125,13 +125,13 @@ protected void drawDataSet(Canvas c, IBarDataSet dataSet, int index) {
125125
126126 for (int j = 0 , pos = 0 ; j < buffer .size (); j += 4 , pos ++) {
127127
128- if (!viewPortHandler .isInBoundsTop (buffer .buffer [j + 3 ])) {
129- break ;
130- }
128+ if (!viewPortHandler .isInBoundsTop (buffer .buffer [j + 3 ])) {
129+ break ;
130+ }
131131
132- if (!viewPortHandler .isInBoundsBottom (buffer .buffer [j + 1 ])) {
133- continue ;
134- }
132+ if (!viewPortHandler .isInBoundsBottom (buffer .buffer [j + 1 ])) {
133+ continue ;
134+ }
135135
136136 if (!isSingleColor ) {
137137 // Set the color for the currently drawn value. If the index
@@ -207,17 +207,17 @@ public void drawValues(Canvas c) {
207207
208208 float y = (buffer .buffer [j + 1 ] + buffer .buffer [j + 3 ]) / 2f ;
209209
210- if (!viewPortHandler .isInBoundsTop (buffer .buffer [j + 1 ])) {
211- break ;
212- }
210+ if (!viewPortHandler .isInBoundsTop (buffer .buffer [j + 1 ])) {
211+ break ;
212+ }
213213
214- if (!viewPortHandler .isInBoundsX (buffer .buffer [j ])) {
215- continue ;
216- }
214+ if (!viewPortHandler .isInBoundsX (buffer .buffer [j ])) {
215+ continue ;
216+ }
217217
218- if (!viewPortHandler .isInBoundsBottom (buffer .buffer [j + 1 ])) {
219- continue ;
220- }
218+ if (!viewPortHandler .isInBoundsBottom (buffer .buffer [j + 1 ])) {
219+ continue ;
220+ }
221221
222222 BarEntry entry = dataSet .getEntryForIndex (j / 4 );
223223 float val = entry .getY ();
@@ -282,17 +282,17 @@ public void drawValues(Canvas c) {
282282 // in between
283283 if (vals == null ) {
284284
285- if (!viewPortHandler .isInBoundsTop (buffer .buffer [bufferIndex + 1 ])) {
286- break ;
287- }
285+ if (!viewPortHandler .isInBoundsTop (buffer .buffer [bufferIndex + 1 ])) {
286+ break ;
287+ }
288288
289- if (!viewPortHandler .isInBoundsX (buffer .buffer [bufferIndex ])) {
290- continue ;
291- }
289+ if (!viewPortHandler .isInBoundsX (buffer .buffer [bufferIndex ])) {
290+ continue ;
291+ }
292292
293- if (!viewPortHandler .isInBoundsBottom (buffer .buffer [bufferIndex + 1 ])) {
294- continue ;
295- }
293+ if (!viewPortHandler .isInBoundsBottom (buffer .buffer [bufferIndex + 1 ])) {
294+ continue ;
295+ }
296296
297297 float val = entry .getY ();
298298 String formattedValue = formatter .getFormattedValue (val ,
@@ -387,17 +387,17 @@ public void drawValues(Canvas c) {
387387 + (drawBelow ? negOffset : posOffset );
388388 float y = (buffer .buffer [bufferIndex + 1 ] + buffer .buffer [bufferIndex + 3 ]) / 2f ;
389389
390- if (!viewPortHandler .isInBoundsTop (y )) {
391- break ;
392- }
390+ if (!viewPortHandler .isInBoundsTop (y )) {
391+ break ;
392+ }
393393
394- if (!viewPortHandler .isInBoundsX (x )) {
395- continue ;
396- }
394+ if (!viewPortHandler .isInBoundsX (x )) {
395+ continue ;
396+ }
397397
398- if (!viewPortHandler .isInBoundsBottom (y )) {
399- continue ;
400- }
398+ if (!viewPortHandler .isInBoundsBottom (y )) {
399+ continue ;
400+ }
401401
402402 if (dataSet .isDrawValuesEnabled ()) {
403403 drawValue (c , formattedValue , x , y + halfTextHeight , color );
0 commit comments