Index: trunk/BNC/src/bnccore.cpp
===================================================================
--- trunk/BNC/src/bnccore.cpp	(revision 7025)
+++ trunk/BNC/src/bnccore.cpp	(revision 7026)
@@ -425,5 +425,13 @@
   QString strV3 = eph.toString(t_rnxObsHeader::defaultRnxObsVersion3);
 
-  printOutputEph(printFile, _ephStreamGlonass, strV2, strV3);
+  if     (_rinexVers == 2 && eph.type() == t_eph::GLONASS) {
+    printOutputEph(printFile, _ephStreamGlonass, strV2, strV3);
+  }
+  else if(_rinexVers == 2 && eph.type() == t_eph::GPS)  {
+    printOutputEph(printFile, _ephStreamGPS, strV2, strV3);
+  }
+  else if (_rinexVers == 3) {
+    printOutputEph(printFile, _ephStreamGPS, strV2, strV3);
+  }
 }
 
