- // remember that the lists are stored in reverse
- // so you've got to turn the second one around
- // as you insert it in the first
- for (int counter = tr.count; counter > 0; --counter) {
- int i = 1;
- TexRow_Item *iter = tr.next;
- while (i < counter) {
- iter = iter->next;
- ++i;
- }
-
- ++count;
- TexRow_Item *tmp;
- tmp = new TexRow_Item;
- tmp->id = iter->id;
- tmp->pos = iter->pos;
- tmp->next = next;
- tmp->rownumber = count;
- next = tmp;
- }
- // should I be doing this or not?
- //lastpar = tr.lastpar;
- //lastpos = tr.lastpos;