Index: trunk/BNC/src/rinex/rnxobsfile.cpp
===================================================================
--- trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 6126)
+++ trunk/BNC/src/rinex/rnxobsfile.cpp	(revision 6127)
@@ -853,16 +853,21 @@
       else {
         const t_rnxObs& rnxObs = rnxSat.obs[type]; 
-        *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
-        if (rnxObs.lli != 0.0) {
-          *_stream << QString("%1").arg(rnxObs.lli,1);
+        if (rnxObs.value == 0.0) {
+          *_stream << QString().leftJustified(16);
         }
         else {
-          *_stream << ' ';
-        }
-        if (rnxObs.snr != 0.0) {
-          *_stream << QString("%1").arg(rnxObs.snr,1);
-        }
-        else {
-          *_stream << ' ';
+          *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
+          if (rnxObs.lli != 0.0) {
+            *_stream << QString("%1").arg(rnxObs.lli,1);
+          }
+          else {
+            *_stream << ' ';
+          }
+          if (rnxObs.snr != 0.0) {
+            *_stream << QString("%1").arg(rnxObs.snr,1);
+          }
+          else {
+            *_stream << ' ';
+          }
         }
       }
@@ -905,16 +910,21 @@
       else {
         const t_rnxObs& rnxObs = rnxSat.obs[type];
-        *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
-        if (rnxObs.lli != 0.0) {
-          *_stream << QString("%1").arg(rnxObs.lli,1);
+        if (rnxObs.value == 0.0) {
+          *_stream << QString().leftJustified(16);
         }
         else {
-          *_stream << ' ';
-        }
-        if (rnxObs.snr != 0.0) {
-          *_stream << QString("%1").arg(rnxObs.snr,1);
-        }
-        else {
-          *_stream << ' ';
+          *_stream << QString("%1").arg(rnxObs.value, 14, 'f', 3);
+          if (rnxObs.lli != 0.0) {
+            *_stream << QString("%1").arg(rnxObs.lli,1);
+          }
+          else {
+            *_stream << ' ';
+          }
+          if (rnxObs.snr != 0.0) {
+            *_stream << QString("%1").arg(rnxObs.snr,1);
+          }
+          else {
+            *_stream << ' ';
+          }
         }
       }
