Index: /trunk/BNC/rinex/reqcedit.cpp
===================================================================
--- /trunk/BNC/rinex/reqcedit.cpp	(revision 4005)
+++ /trunk/BNC/rinex/reqcedit.cpp	(revision 4006)
@@ -231,16 +231,13 @@
     t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input);
     for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
-      t_eph*    eph = rnxNavFile.ephs()[ii];
-      t_ephGPS* ephGPS = dynamic_cast<t_ephGPS*>(eph);
-      t_ephGlo* ephGlo = dynamic_cast<t_ephGlo*>(eph);
-      t_ephGal* ephGal = dynamic_cast<t_ephGal*>(eph);
-      if      (ephGPS) {
-        _ephs.append(new t_ephGPS(*ephGPS));
-      }
-      else if (ephGlo) {
-        _ephs.append(new t_ephGlo(*ephGlo));
-      }
-      else if (ephGal) {
-        _ephs.append(new t_ephGal(*ephGal));
+      t_eph* eph = rnxNavFile.ephs()[ii];
+      if      (eph->type() == t_eph::GPS) {
+        _ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
+      }
+      else if (eph->type() == t_eph::GLONASS) {
+        _ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph)));
+      }
+      else if (eph->type() == t_eph::Galileo) {
+        _ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph)));
       }
     }
