Changeset 4152 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
May 11, 2012, 5:52:51 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxobsfile.cpp

    r4137 r4152  
    163163          line = stream->readLine(); ++numLines;
    164164          delete in;
    165           in = new QTextStream(line.toAscii(), QIODevice::ReadOnly);
     165          in = new QTextStream(line.left(60).toAscii(), QIODevice::ReadOnly);
    166166        }
    167167        QString hlp;
     
    775775    for (int ii = 0; ii < _header._obsTypesV2.size(); ii++) {
    776776      QTextStream(&hlp) << QString("%1").arg(_header._obsTypesV2[ii], 6);   
    777       if (ii > 0 && (ii % 8 == 0 || ii == _header._obsTypesV2.size()-1)) {
     777      if ((ii+1) % 9 == 0 || ii == _header._obsTypesV2.size()-1) {
    778778        strList.append(hlp.leftJustified(60) + "# / TYPES OF OBSERV\n");
    779779        hlp = QString().leftJustified(6);
     
    791791      for (int ii = 0; ii < types.size(); ii++) {
    792792        QTextStream(&hlp) << QString(" %1").arg(types[ii], -3);   
    793         if (ii > 0 && (ii % 12 == 0 || ii == types.size()-1)) {
     793        if ((ii+1) % 13 == 0 || ii == types.size()-1) {
    794794          strList.append(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n");
    795795          hlp = QString().leftJustified(6);
Note: See TracChangeset for help on using the changeset viewer.