From 87f8f4831b7c504e5d60a4bfb4681b19f9636eb7 Mon Sep 17 00:00:00 2001 From: "Darryl H. Thomas" Date: Mon, 2 May 2011 04:30:17 +0800 Subject: [PATCH] Fix misplaced var declaration --- Classes/AQGridViewCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/AQGridViewCell.m b/Classes/AQGridViewCell.m index 33688c7..f41d4f5 100644 --- a/Classes/AQGridViewCell.m +++ b/Classes/AQGridViewCell.m @@ -301,10 +301,10 @@ - (void) _beginBackgroundHighlight: (BOOL) highlightOn animated: (BOOL) animated { if ( (_cellFlags.usingDefaultSelectedBackgroundView == 1) && (_selectedBackgroundView == nil) ) { + NSString *imageName = nil; #ifdef BUILTIN_IMAGES unsigned char * pngBytes = AQGridSelection_png; NSUInteger pngLength = AQGridSelection_png_len; - NSString *imageName = nil; switch ( _cellFlags.selectionStyle ) {