Mercurial > dwindows
changeset 1079:5d3acda4acd4
Fixed a minor cut and paste error and formatting on Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 28 Jun 2011 04:50:51 +0000 |
parents | 6eadfe0007b4 |
children | 27e9a063fbb5 |
files | mac/dw.m |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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;z<thisbox->count;z++) { - if(z == index) - x++; - tmpitem[z+1] = thisitem[z]; - x++; + if(z == index) + x++; + tmpitem[x] = thisitem[z]; + x++; } /* Sanity checks */