From 5409b341942cde78f34ccc7790a9779f0717750a Mon Sep 17 00:00:00 2001 From: guysung Date: Tue, 4 Jun 2013 21:53:40 -0400 Subject: [PATCH] Fixing the line chart crash issue when the app gets into landscape mode by initializing "int power" local variable. --- iOSPlot/Shared/PCLineChartView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOSPlot/Shared/PCLineChartView.m b/iOSPlot/Shared/PCLineChartView.m index b8d57aa..40671e6 100644 --- a/iOSPlot/Shared/PCLineChartView.m +++ b/iOSPlot/Shared/PCLineChartView.m @@ -71,7 +71,7 @@ - (void)drawRect:(CGRect)rect { CGContextSetRGBFillColor(ctx, 0.2f, 0.2f, 0.2f, 1.0f); int n_div; - int power; + int power=0; float scale_min, scale_max, div_height; float top_margin = 35; float bottom_margin = 25;