Changeset 7474


Ignore:
Timestamp:
2004-05-27T14:55:02+12:00 (20 years ago)
Author:
davidb
Message:

Fixed bug in nested {If} statement code that caused text and metadata before
the nested if to be lost. Fix was to add nested if to end of nextptr list,
rather than store straight into nextptr datastructure (which is why the earlier
elements to the if-statement were getting lost.

CVS: ----------------------------------------------------------------------

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.cpp

    r7432 r7474  
    831831        *nextlistptr = new format_t();
    832832          } else {
     833        // skip to the end of any format_t statements already added
     834        while ((*nextlistptr)->nextptr != NULL)
     835          {
     836            nextlistptr = &(*nextlistptr)->nextptr;
     837          }
     838
    833839        (*nextlistptr)->nextptr = new format_t();
    834840        nextlistptr = &(*nextlistptr)->nextptr;
Note: See TracChangeset for help on using the changeset viewer.