# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1303797079 0 # Node ID 13384e89964c230691fb64fff9e6d231b61cd335 # Parent b19e6e55fc8e3ff232c3197870c67acc8eb3965a Put in a bounds check just on a hunch when editing containers on Mac. diff -r b19e6e55fc8e -r 13384e89964c mac/dw.m --- a/mac/dw.m Tue Apr 26 03:23:05 2011 +0000 +++ b/mac/dw.m Tue Apr 26 05:51:19 2011 +0000 @@ -1374,7 +1374,10 @@ if(tvcols && input) { int index = (int)(row * [tvcols count]) + col; - [data replaceObjectAtIndex:index withObject:input]; + if(index < [data count]) + { + [data replaceObjectAtIndex:index withObject:input]; + } } } -(void)removeRow:(int)row