Changeset 4152 in ntrip for trunk/BNC/rinex
- Timestamp:
- May 11, 2012, 5:52:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/rnxobsfile.cpp
r4137 r4152 163 163 line = stream->readLine(); ++numLines; 164 164 delete in; 165 in = new QTextStream(line. toAscii(), QIODevice::ReadOnly);165 in = new QTextStream(line.left(60).toAscii(), QIODevice::ReadOnly); 166 166 } 167 167 QString hlp; … … 775 775 for (int ii = 0; ii < _header._obsTypesV2.size(); ii++) { 776 776 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) { 778 778 strList.append(hlp.leftJustified(60) + "# / TYPES OF OBSERV\n"); 779 779 hlp = QString().leftJustified(6); … … 791 791 for (int ii = 0; ii < types.size(); ii++) { 792 792 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) { 794 794 strList.append(hlp.leftJustified(60) + "SYS / # / OBS TYPES\n"); 795 795 hlp = QString().leftJustified(6);
Note:
See TracChangeset
for help on using the changeset viewer.