Skip to content

Commit

Permalink
Fixed compile-error - missing variable definition
Browse files Browse the repository at this point in the history
  • Loading branch information
myell0w authored and AlanQuatermain committed May 1, 2011
1 parent 2d86535 commit 66099c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Classes/AQGridViewCell.m
Expand Up @@ -304,6 +304,8 @@ - (void) _beginBackgroundHighlight: (BOOL) highlightOn animated: (BOOL) animated
#ifdef BUILTIN_IMAGES
unsigned char * pngBytes = AQGridSelection_png;
NSUInteger pngLength = AQGridSelection_png_len;
NSString *imageName = nil;

switch ( _cellFlags.selectionStyle )
{
case AQGridViewCellSelectionStyleBlue:
Expand All @@ -330,7 +332,7 @@ - (void) _beginBackgroundHighlight: (BOOL) highlightOn animated: (BOOL) animated
NSData *pngData = [NSData dataWithBytesNoCopy: pngBytes length: pngLength freeWhenDone: NO];
_selectedBackgroundView = [[UIImageView alloc] initWithImage: [UIImage imageWithData: pngData]];
#else
NSString * imageName = @"AQGridSelection.png";
imageName = @"AQGridSelection.png";
switch ( _cellFlags.selectionStyle )
{
case AQGridViewCellSelectionStyleBlue:
Expand Down

0 comments on commit 66099c5

Please sign in to comment.