# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1336248823 0 # Node ID 3fa0448d3a7ea609d178e513d64b4f7f1d7c45a6 # Parent 873304f581beb6e07a94c1c957e856480aa32008 Fixed a bug in dw_container_delete_row() on Mac and potentially a similar bug in dw_container_delete(). diff -r 873304f581be -r 3fa0448d3a7e mac/dw.m --- 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 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; }