Index: /trunk/Mars/mcore/fits.h
===================================================================
--- /trunk/Mars/mcore/fits.h	(revision 13224)
+++ /trunk/Mars/mcore/fits.h	(revision 13225)
@@ -619,6 +619,9 @@
     }
 
-    bool GetRow(size_t row)
-    {
+    bool GetRow(size_t row, bool check=true)
+    {
+        if (check && row>=fTable.num_rows)
+            return false;
+
         const uint8_t offset = ReadRow(row);
         if (!good())
@@ -648,7 +651,7 @@
     }
 
-    bool GetNextRow()
-    {
-        return GetRow(fRow+1);
+    bool GetNextRow(bool check=true)
+    {
+        return GetRow(fRow+1, check);
     }
 
