# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1320055405 0 # Node ID d10969835d2d610346a8d64824b45f1d350b0f0c # Parent 57ce07fbec45f0c12d7f86b63cb4e91a4f067972 Changes to allow removing icon on BITMAPORICON container columns on Mac. diff -r 57ce07fbec45 -r d10969835d2d mac/dw.m --- a/mac/dw.m Mon Oct 31 09:37:47 2011 +0000 +++ b/mac/dw.m Mon Oct 31 10:03:25 2011 +0000 @@ -1676,11 +1676,13 @@ } -(void)editCell:(id)input at:(int)row and:(int)col { - if(tvcols && input) + if(tvcols) { int index = (int)(row * [tvcols count]) + col; if(index < [data count]) { + if(!input) + input = [NSNull null]; [data replaceObjectAtIndex:index withObject:input]; } }