Changeset 3969 in ntrip


Ignore:
Timestamp:
Apr 20, 2012, 1:37:46 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3967 r3969  
    619619          const QString& typeV3 = typesV3[i3];
    620620          QString        typeV2 = type3to2(typeV3);
    621           bool found = false;
    622           for (unsigned i2 = 0; i2 < _header._obsTypesV2.size(); i2++) {
    623             if (_header._obsTypesV2[i2] == typeV2) {
    624               found = true;
    625               _indexMap2to3[sys][i2] = i3;
    626               break;
     621          if (!typeV2.isEmpty()) {
     622            bool found = false;
     623            for (unsigned i2 = 0; i2 < _header._obsTypesV2.size(); i2++) {
     624              if (_header._obsTypesV2[i2] == typeV2) {
     625                found = true;
     626                _indexMap2to3[sys][i2] = i3;
     627                break;
     628              }
    627629            }
    628           }
    629           if (!found) {
    630             _header._obsTypesV2.push_back(typeV2);
    631             int i2 = _header._obsTypesV2.size() - 1;
    632             _indexMap2to3[sys][i2] = i3;
     630            if (!found) {
     631              _header._obsTypesV2.push_back(typeV2);
     632              int i2 = _header._obsTypesV2.size() - 1;
     633              _indexMap2to3[sys][i2] = i3;
     634            }
    633635          }
    634636        }
Note: See TracChangeset for help on using the changeset viewer.