Ignore:
Timestamp:
06/21/12 18:36:38 (12 years ago)
Author:
tbretz
Message:
Return row 0 if file was not yet opened.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r13225 r14203  
    816816
    817817    size_t GetNumRows() const { return fTable.num_rows; }
    818     size_t GetRow() const { return fRow; }
     818    size_t GetRow() const { return fRow==(size_t)-1 ? 0 : fRow; }
    819819
    820820    operator bool() const { return fTable && fTable.offset!=0; }
Note: See TracChangeset for help on using the changeset viewer.