Mercurial > dwindows
changeset 934:13384e89964c
Put in a bounds check just on a hunch when editing containers on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 26 Apr 2011 05:51:19 +0000 |
parents | b19e6e55fc8e |
children | 114729f5aedc |
files | mac/dw.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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