@@ -269,9 +269,9 @@ export class PieChartRenderer extends DataRenderer {
269269 // Android API < 21 does not receive floats in addArc, but a RectF
270270
271271 if ( drawInnerArc && ( innerRadius > 0 || accountForSliceSpacing ) ) {
272- const innerRectBuffer = Utils . getTempRectF ( )
273- innerRectBuffer . set ( center . x - innerRadius , center . y - innerRadius , center . x + innerRadius , center . y + innerRadius ) ;
274- if ( accountForSliceSpacing ) {
272+ const innerRectBuffer = Utils . getTempRectF ( ) ;
273+ innerRectBuffer . set ( center . x - innerRadius , center . y - innerRadius , center . x + innerRadius , center . y + innerRadius ) ;
274+ if ( accountForSliceSpacing ) {
275275 let minSpacedRadius = this . calculateMinimumRadiusForSpacedSlice ( center , radius , sliceAngle * phaseY , arcStartPointX , arcStartPointY , startAngleOuter , sweepAngleOuter ) ;
276276
277277 if ( minSpacedRadius < 0 ) {
@@ -785,10 +785,9 @@ export class PieChartRenderer extends DataRenderer {
785785 ) ;
786786 }
787787
788-
789788 if ( drawInnerArc && ( innerRadius > 0 || accountForSliceSpacing ) ) {
790789 // Android API < 21 does not receive floats in addArc, but a RectF
791- const innerRectBuffer = Utils . getTempRectF ( )
790+ const innerRectBuffer = Utils . getTempRectF ( ) ;
792791 innerRectBuffer . set ( center . x - innerRadius , center . y - innerRadius , center . x + innerRadius , center . y + innerRadius ) ;
793792 if ( accountForSliceSpacing ) {
794793 let minSpacedRadius = sliceSpaceRadius ;
0 commit comments