Index: /trunk/BNC/src/rinex/rnxobsfile.cpp
===================================================================
--- /trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 6243)
+++ /trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 6244)
@@ -49,9 +49,8 @@
 using namespace std;
 
-const QString t_rnxObsHeader::defaultSystems = "GRES";
-
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
 t_rnxObsHeader::t_rnxObsHeader() {
+  _defaultSystems = "GRES";
   _antNEU.ReSize(3); _antNEU = 0.0;
   _antXYZ.ReSize(3); _antXYZ = 0.0;
@@ -166,5 +165,5 @@
       int nTypes;
       *in >> nTypes;
-      char sys0 = defaultSystems[0].toAscii();
+      char sys0 = _defaultSystems[0].toAscii();
       _obsTypes[sys0].clear();
       for (int ii = 0; ii < nTypes; ii++) {
@@ -178,6 +177,6 @@
         _obsTypes[sys0].append(hlp);
       }
-      for (int ii = 1; ii < defaultSystems.length(); ii++) {
-        char sysI = defaultSystems[ii].toAscii();
+      for (int ii = 1; ii < _defaultSystems.length(); ii++) {
+        char sysI = _defaultSystems[ii].toAscii();
         _obsTypes[sysI] = _obsTypes[sys0];
       }
@@ -328,9 +327,15 @@
       }
       else {
-        for (int iSys = 0; iSys < t_rnxObsHeader::defaultSystems.length(); iSys++) {
-          char sys = t_rnxObsHeader::defaultSystems[iSys].toAscii();
+        for (int iSys = 0; iSys < t_rnxObsHeader::_defaultSystems.length(); iSys++) {
+          char sys = t_rnxObsHeader::_defaultSystems[iSys].toAscii();
           _obsTypes[sys].push_back(useObsTypes->at(iType));
         }
       }
+    }
+    _defaultSystems.clear();
+    QMapIterator<char, QStringList> it(_obsTypes);
+    while (it.hasNext()) {
+      it.next();
+      _defaultSystems += QChar(it.key());
     }
   }
@@ -522,5 +527,5 @@
 
   if (_version < 3.0) {
-    char sys0 = defaultSystems[0].toAscii();
+    char sys0 = _defaultSystems[0].toAscii();
     QString hlp;
     QTextStream(&hlp) << QString("%1").arg(_obsTypes[sys0].size(), 6);
Index: /trunk/BNC/src/rinex/rnxobsfile.h
===================================================================
--- /trunk/BNC/src/rinex/rnxobsfile.h	(revision 6243)
+++ /trunk/BNC/src/rinex/rnxobsfile.h	(revision 6244)
@@ -64,4 +64,5 @@
  private:
   QStringList obsTypesStrings() const;
+  QString                 _defaultSystems;
   double                  _version;
   double                  _interval;
