Browse Source

Fixed incorrect setting of variable names in tsc action.

lintest
Michael Uleysky 1 year ago
parent
commit
ef98f3f63d
  1. 2
      actions/actiontsc.h

2
actions/actiontsc.h

@ -79,7 +79,7 @@ template<class D> MString ActionTSC::DoAction(const CLArgs& args, D& ds)
{ {
if(!data[i].Unit().Exist()) michlib::errmessage("Unknown measurement unit for variable " + vnames[i] + "!"); if(!data[i].Unit().Exist()) michlib::errmessage("Unknown measurement unit for variable " + vnames[i] + "!");
if(!data[i].StandartName().Exist()) data[i].SetStandartName(NCFuncs::Name2StName(vnames[i])); if(!data[i].StandartName().Exist()) data[i].SetStandartName(NCFuncs::Name2StName(vnames[i]));
if(!data[i].LongName().Exist()) data[i].SetStandartName(NCFuncs::Name2LongName(vnames[i])); if(!data[i].LongName().Exist()) data[i].SetLongName(NCFuncs::Name2LongName(vnames[i]));
} }
MString name = args.contains("out") ? args.at("out") : "out.bin"; MString name = args.contains("out") ? args.at("out") : "out.bin";

Loading…
Cancel
Save