Changeset 12150 for trunk


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

Legend:

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

    r12149 r12150  
    451451            const MyColumn *col = static_cast<MyColumn*>(ic->second);
    452452
    453             cout << "   " << col->name() << "[" << col->width() << "] * " << col->scale() << " (" << col->unit() << ":" <<  ValueTypeToStr(col->type())<<  ") " << col->comment() << "\n";
     453            cout << "   " << col->name() << "[" ;
     454            if (col->width() == 0)
     455                cout << 1;
     456            else
     457                cout << col->width();
     458            cout  << "] * " << col->scale() << " (" << col->unit() << ":" <<  ValueTypeToStr(col->type())<<  ") " << col->comment() << "\n";
    454459            /*
    455460             inline size_t Column::repeat () const
Note: See TracChangeset for help on using the changeset viewer.