Mercurial > dwindows
changeset 1705:3fa0448d3a7e
Fixed a bug in dw_container_delete_row() on Mac and potentially a similar bug in dw_container_delete().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 05 May 2012 20:13:43 +0000 |
parents | 873304f581be |
children | fb6807b0ab0d |
files | mac/dw.m |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sat May 05 06:48:40 2012 +0000 +++ b/mac/dw.m Sat May 05 20:13:43 2012 +0000 @@ -1848,15 +1848,15 @@ int z, start, end; int count = (int)[tvcols count]; - start = count * row; + start = (count * row); end = start + count; for(z=start;z<end;z++) { - [data removeObjectAtIndex:z]; + [data removeObjectAtIndex:start]; } [titles removePointerAtIndex:row]; - if(lastAddPoint > 0 && lastAddPoint < row) + if(lastAddPoint > 0 && lastAddPoint > row) { lastAddPoint--; } @@ -6583,6 +6583,7 @@ { [cont removeRow:0]; } + [cont reloadData]; DW_MUTEX_UNLOCK; } @@ -6757,6 +6758,7 @@ if((textcomp && thistext && strcmp(thistext, text) == 0) || (!textcomp && thistext == text)) { [cont removeRow:x]; + [cont reloadData]; DW_MUTEX_UNLOCK; return; }