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

No commit message

No commit message
parent 9189a496
Branches
Tags
No related merge requests found
......@@ -727,14 +727,14 @@ void Msg::ExchangeOnelabParameter(const std::string &key,
if(val[0] > 0){
ps[0].setMin(val[0] / fact);
ps[0].setMax(val[0] * fact);
ps[0].setStep((val[0] * fact - val[0] / fact) / 100.);
ps[0].setStep((ps[0].getMax() - ps[0].getMin()) / 100.);
}
else if(val[0] < 0){
ps[0].setMin(val[0] * fact);
ps[0].setMax(val[0] / fact);
ps[0].setStep((val[0] / fact - val[0] * fact) / 100.);
ps[0].setStep((ps[0].getMax() - ps[0].getMin()) / 100.);
}
if(isInteger){
if(val[0] && isInteger){
ps[0].setMin((int)ps[0].getMin());
ps[0].setMax((int)ps[0].getMax());
ps[0].setStep((int)ps[0].getStep());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment