Ignore:
Timestamp:
12/07/11 09:00:48 (13 years ago)
Author:
lyard
Message:
forgot this one yesterday
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Fits.cc

    r12689 r12710  
    213213        }
    214214        fFile->WriteKeyNT("COMMENT", fTableDesc, "");
    215         //END COMMENTS UPDATE
     215
     216        if (fFile->GetNumRows() == 0)
     217        {//if new file, then write header keys -> reset fEndMjD used as flag
     218            fEndMjD = 0;
     219        }
     220        else
     221        {//file is beingn updated. Prevent from overriding header keys
     222            fEndMjD = Time().Mjd();
     223        }
    216224        return fFile->GetNumRows()==0 ? WriteHeaderKeys() : true;
    217225    }
Note: See TracChangeset for help on using the changeset viewer.