Skip to content

Commit a842725

Browse files
committed
Fixed a type conversion warning in the Plot Gallery app.
1 parent 90a883e commit a842725

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/CorePlotGallery/src/plots/SimplePieChart.m‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ -(void)legend:(nonnull CPTLegend *)legend legendEntryForPlot:(nonnull CPTPlot *)
156156

157157
[CPTAnimation animate:self
158158
property:@"sliceOffset"
159-
from:CPTFloat(idx == self.offsetIndex ? CPTNAN : 0.0)
160-
to:CPTFloat(idx == self.offsetIndex ? 0.0 : 35.0)
159+
from:( idx == self.offsetIndex ? CPTNAN : CPTFloat(0.0) )
160+
to:( idx == self.offsetIndex ? CPTFloat(0.0) : CPTFloat(35.0) )
161161
duration:0.5
162162
animationCurve:CPTAnimationCurveCubicOut
163163
delegate:nil];

0 commit comments

Comments
 (0)