Mercurial > dwindows
diff mac/dw.m @ 1288:d10969835d2d
Changes to allow removing icon on BITMAPORICON container columns on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 31 Oct 2011 10:03:25 +0000 |
parents | ee9a233f1b42 |
children | b99b0b2c2826 |
line wrap: on
line diff
--- 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]; } }