Skip to content
Snippets Groups Projects
Commit e5dffc09 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Closed should be a float opt

parent 26a5ccb9
No related branches found
No related tags found
No related merge requests found
......@@ -907,7 +907,10 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
}
if(noLoop && copt.count("Loop")) ps[0].setAttribute("Loop", copt["Loop"][0]);
if(noGraph && copt.count("Graph")) ps[0].setAttribute("Graph", copt["Graph"][0]);
if(noClosed && copt.count("Closed")) ps[0].setAttribute("Closed", copt["Closed"][0]);
if(noClosed && copt.count("Closed")) // for backward compatibility
ps[0].setAttribute("Closed", copt["Closed"][0]);
if(noClosed && fopt.count("Closed"))
ps[0].setAttribute("Closed", fopt["Closed"][0] ? "1" : "0");
_setStandardOptions(&ps[0], fopt, copt);
_onelabClient->set(ps[0]);
#endif
......@@ -943,7 +946,10 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
}
if(copt.count("Kind")) ps[0].setKind(copt["Kind"][0]);
if(noChoices && copt.count("Choices")) ps[0].setChoices(copt["Choices"]);
if(noClosed && copt.count("Closed")) ps[0].setAttribute("Closed", copt["Closed"][0]);
if(noClosed && copt.count("Closed")) // for backward compatibility
ps[0].setAttribute("Closed", copt["Closed"][0]);
if(noClosed && fopt.count("Closed"))
ps[0].setAttribute("Closed", fopt["Closed"][0] ? "1" : "0");
if(noMultipleSelection && copt.count("MultipleSelection"))
ps[0].setAttribute("MultipleSelection", copt["MultipleSelection"][0]);
_setStandardOptions(&ps[0], fopt, copt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment