macosx: compilation fix for earlier clang releases and runtime fix for 10.6
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 18 Aug 2014 20:54:16 +0000 (22:54 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 18 Aug 2014 21:23:58 +0000 (23:23 +0200)
modules/gui/macosx/playlist.m

index 09ddb9d..e6d777b 100644 (file)
     NSArray *columns = [o_outline_view tableColumns];
     NSUInteger count = columns.count;
     for (NSUInteger x = 0; x < count; x++)
-        [[columns[x] dataCell] setFont:fontToUse];
+        [[[columns objectAtIndex:x] dataCell] setFont:fontToUse];
     [o_outline_view setRowHeight:rowHeight];
 
     columns = [o_outline_view_other tableColumns];
     count = columns.count;
     for (NSUInteger x = 0; x < count; x++)
-        [[columns[x] dataCell] setFont:fontToUse];
+        [[[columns objectAtIndex:x] dataCell] setFont:fontToUse];
     [o_outline_view_other setRowHeight:rowHeight];
 }