Mercurial > dwindows
comparison mac/dw.m @ 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 | 34f1d6f5f1c3 |
children | 4254c9b6d50d |
comparison
equal
deleted
inserted
replaced
1078:6eadfe0007b4 | 1079:5d3acda4acd4 |
---|---|
3205 this = item = [tree scrollview]; | 3205 this = item = [tree scrollview]; |
3206 } | 3206 } |
3207 | 3207 |
3208 /* Do some sanity bounds checking */ | 3208 /* Do some sanity bounds checking */ |
3209 if(index < 0) | 3209 if(index < 0) |
3210 index = 0; | 3210 index = 0; |
3211 if(index > thisbox->count) | 3211 if(index > thisbox->count) |
3212 index = thisbox->count; | 3212 index = thisbox->count; |
3213 | 3213 |
3214 /* Duplicate the existing data */ | 3214 /* Duplicate the existing data */ |
3215 tmpitem = malloc(sizeof(Item)*(thisbox->count+1)); | 3215 tmpitem = malloc(sizeof(Item)*(thisbox->count+1)); |
3216 | 3216 |
3217 for(z=0;z<thisbox->count;z++) | 3217 for(z=0;z<thisbox->count;z++) |
3218 { | 3218 { |
3219 if(z == index) | 3219 if(z == index) |
3220 x++; | 3220 x++; |
3221 tmpitem[z+1] = thisitem[z]; | 3221 tmpitem[x] = thisitem[z]; |
3222 x++; | 3222 x++; |
3223 } | 3223 } |
3224 | 3224 |
3225 /* Sanity checks */ | 3225 /* Sanity checks */ |
3226 if(vsize && !height) | 3226 if(vsize && !height) |
3227 height = 1; | 3227 height = 1; |