From ef98f3f63def906ce5ec3edaa00ddcdacd037b65 Mon Sep 17 00:00:00 2001 From: Michael Uleysky Date: Fri, 1 Sep 2023 13:27:08 +1000 Subject: [PATCH] Fixed incorrect setting of variable names in tsc action. --- actions/actiontsc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/actiontsc.h b/actions/actiontsc.h index 3fde8ae..a780c39 100644 --- a/actions/actiontsc.h +++ b/actions/actiontsc.h @@ -79,7 +79,7 @@ template 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].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";