Changeset 1503


Ignore:
Timestamp:
02/12/09 20:12:45 (15 years ago)
Author:
Malte Marquarding
Message:

Fix for ticket #78; this had nothing to do with memory tables, it was just wrong use of ScalarColumnDesc?. The second arguent to it is not a default value but an option flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1430 r1503  
    211211  td.addColumn(ScalarColumnDesc<String>("SRCNAME"));
    212212  // Type of source (on=0, off=1, other=-1)
    213   td.addColumn(ScalarColumnDesc<Int>("SRCTYPE", Int(-1)));
     213  ScalarColumnDesc<Int> stypeColumn("SRCTYPE");
     214  stypeColumn.setDefault(Int(-1));
     215  td.addColumn(stypeColumn);
    214216  td.addColumn(ScalarColumnDesc<String>("FIELDNAME"));
    215217
Note: See TracChangeset for help on using the changeset viewer.