Changeset 24965

Show
Ignore:
Timestamp:
24.01.2012 14:43:52 (8 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.]

Files:
1 modified

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