# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1309236651 0 # Node ID 5d3acda4acd4a09b9710060292d17637a1e217e4 # Parent 6eadfe0007b480c4ea3e58411a5e433f02310a48 Fixed a minor cut and paste error and formatting on Mac. diff -r 6eadfe0007b4 -r 5d3acda4acd4 mac/dw.m --- a/mac/dw.m Tue Jun 28 04:47:41 2011 +0000 +++ b/mac/dw.m Tue Jun 28 04:50:51 2011 +0000 @@ -3207,19 +3207,19 @@ /* Do some sanity bounds checking */ if(index < 0) - index = 0; + index = 0; if(index > thisbox->count) - index = thisbox->count; - + index = thisbox->count; + /* Duplicate the existing data */ tmpitem = malloc(sizeof(Item)*(thisbox->count+1)); for(z=0;zcount;z++) { - if(z == index) - x++; - tmpitem[z+1] = thisitem[z]; - x++; + if(z == index) + x++; + tmpitem[x] = thisitem[z]; + x++; } /* Sanity checks */