Index: /trunk/Mars/mcore/fits.h
===================================================================
--- /trunk/Mars/mcore/fits.h	(revision 14202)
+++ /trunk/Mars/mcore/fits.h	(revision 14203)
@@ -816,5 +816,5 @@
 
     size_t GetNumRows() const { return fTable.num_rows; }
-    size_t GetRow() const { return fRow; }
+    size_t GetRow() const { return fRow==(size_t)-1 ? 0 : fRow; }
 
     operator bool() const { return fTable && fTable.offset!=0; }
