Changeset 4493 in ntrip for trunk/BNC/src/rinex/rnxobsfile.cpp


Ignore:
Timestamp:
Aug 4, 2012, 9:21:03 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4484 r4493  
    210210  bncApp* app = (bncApp*) qApp;
    211211
     212  QStringList newComments;
    212213  QString     runBy = app->userName();
    213   QStringList comments;
    214214
    215215  if (txtMap) {
     
    221221      }
    222222      else if (it.key() == "COMMENT") {
    223         comments = it.value().split("\\n", QString::SkipEmptyParts);
     223        newComments = it.value().split("\\n", QString::SkipEmptyParts);
    224224      }
    225225    }
     
    240240           << "PGM / RUN BY / DATE\n";
    241241
    242   QStringListIterator itCmnt(comments);
     242  QStringListIterator itCmnt(_comments + newComments);
    243243  while (itCmnt.hasNext()) {
    244244    *stream << itCmnt.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
Note: See TracChangeset for help on using the changeset viewer.