Index: trunk/Mars/mcore/factfits.h
===================================================================
--- trunk/Mars/mcore/factfits.h	(revision 16495)
+++ trunk/Mars/mcore/factfits.h	(revision 16502)
@@ -60,7 +60,9 @@
          for (uint32_t i=0; i<1440*1024; i+=1024, startCell++)
          {
-             if ((*startCell) > -1)
              for (uint32_t j=0; j<fNumRoi; j++, data++)
+             {
+                 if ((*startCell) < 0) continue;
                  *data += fOffsetCalibration[i + (*startCell+j)%1024];
+             }
          }
     }
