changeset 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 57ce07fbec45
children 5fb54aeba5e0
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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];
         }
     }