Ignore:
Timestamp:
2012-01-24T14:43:52+13:00 (12 years ago)
Author:
mdewsnip
Message:

Fixed bug where the end of the macro definition would be missed if a backslash was the second-to-last character of the macro. [Michael Dewsnip, DL Consulting Ltd.]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/display.cpp

    r11105 r24965  
    834834        c = my_uni_get(fin, line, isunicode, bigendian);
    835835      }
    836       macrovalue.push_back(c);
    837       c = my_uni_get(fin, line, isunicode, bigendian);
     836      // DL CONSULTING FIX: Fix bug where the end of the macro definition would be missed if a backslash
     837      //   was the second-to-last character of the macro. [Michael Dewsnip, DL Consulting Ltd.]
     838      else
     839      {
     840        macrovalue.push_back(c);
     841        c = my_uni_get(fin, line, isunicode, bigendian);
     842      }
    838843    }
    839844   
Note: See TracChangeset for help on using the changeset viewer.