Changeset 18161 for branches


Ignore:
Timestamp:
03/16/15 16:04:17 (10 years ago)
Author:
ftemme
Message:
It is possible that two objects of the same class will be added to MWriteFitsFile. For these cases it is better that the column name is derived from the name of the object and not from the name of the class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/MarsWobble/mfileio/MWriteFitsFile.cc

    r17868 r18161  
    519519
    520520         // initialize all columns of the sub-table, defined by the current container
     521         TString containerName = i_subTable->second.GetContainer()->GetName();
    521522         TClass * cl = i_subTable->second.GetContainer()->IsA();
    522          if (!InitColumns(i_table->first, TString(cl->GetName()) + ".",  fitsTable,
    523                           i_subTable->second.GetContainer(), cl)     ) 
     523         if (!InitColumns(i_table->first, containerName + ".",  fitsTable,
     524                          i_subTable->second.GetContainer(), cl)     )
    524525            return kFALSE;
    525526
Note: See TracChangeset for help on using the changeset viewer.