Changeset 11711 for trunk/Mars


Ignore:
Timestamp:
07/29/11 21:11:21 (13 years ago)
Author:
tbretz
Message:
Fixed a bug when the END tag was the first in a block
Location:
trunk/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/Changelog

    r11572 r11711  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2011/07/29 Thomas Bretz
     22
     23   * mbase/fits.h:
     24     - fixed the case in which the END tag is the first in a block
     25     - use seekg instead of seekpos
     26
     27
    2028
    2129 2011/07/24 Thomas Bretz
  • trunk/Mars/mbase/fits.h

    r11570 r11711  
    363363            string str(c);
    364364
    365             //if (!str.empty())
    366             //    cout << setw(2) << i << "|" << str << "|" << endl;
     365//            if (!str.empty())
     366//                cout << setw(2) << i << "|" << str << "|" << (endtag?'-':'+') << endl;
    367367
    368368            if (str=="END                                                                             ")
     369            {
    369370                endtag = true;
     371
     372                // Make sure that no empty vector is returned
     373                if (vec.size()%36==0)
     374                    vec.push_back(string("END     = '' / "));
     375            }
    370376
    371377            if (endtag)
     
    407413        }
    408414
    409         seekpos(0);
     415        seekg(0);
    410416
    411417        while (good())
Note: See TracChangeset for help on using the changeset viewer.