Changeset 5530 in ntrip


Ignore:
Timestamp:
Nov 6, 2013, 5:39:39 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncrinex.cpp

    r5523 r5530  
    330330  // Append to existing file and return
    331331  // ----------------------------------
    332   if ( QFile::exists(_fName) ) {
    333     if (_reconnectFlag ||
    334         Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) {
    335       _out.open(_fName.data(), ios::app);
    336       _out.setf(ios::showpoint | ios::fixed);
    337       _headerWritten = true;
    338       _reconnectFlag = false;
    339       return;
    340     }
    341   }
    342 
    343   _out.open(_fName.data());
     332  if ( QFile::exists(_fName) &&
     333       (_reconnectFlag || Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) ) {
     334    _out.open(_fName.data(), ios::app);
     335    _out.setf(ios::showpoint | ios::fixed);
     336    _headerWritten = true;
     337    _reconnectFlag = false;
     338  }
     339  else {
     340    _out.open(_fName.data());
     341  }
     342
    344343  _out.setf(ios::showpoint | ios::fixed);
    345344
     
    428427
    429428  outHlp.flush();
    430   _out << headerLines.data();
     429
     430  if (!_headerWritten) {
     431    _out << headerLines.data();
     432  }
    431433
    432434  _headerWritten = true;
Note: See TracChangeset for help on using the changeset viewer.