Changeset 12149 for trunk/FACT++


Ignore:
Timestamp:
09/28/11 14:41:12 (13 years ago)
Author:
lyard
Message:
bug fix - fitsdump
File:
1 edited

Legend:

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

    r12099 r12149  
    330330            return vector<int>();
    331331        }
    332 
    333         sizes[idx] = size*width;
     332//cout << "data size: " << size << " width: " << width << " index: " << idx << endl;
     333        int realwidth = (width == 0)? 1 : width;
     334        sizes[idx] = size*realwidth;
    334335    }
    335336
     
    603604    // FIXME: Maybe do this when opening a table?
    604605    const vector<int> offsets = CalculateOffsets();
     606 //   for (int i=0;i<offsets.size(); i++)
     607 //       cout << offsets[i] << " ";
     608//    cout << endl;
    605609    if (offsets.size()==0)
    606610        return false;
Note: See TracChangeset for help on using the changeset viewer.