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

larger tolerance to workaround FL_Input (int) behaviour

parent 0e43fe3b
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ class inputRange : public Fl_Group {
// workaround annoying behaviour of Fl_Value_Input: if step is a nonzero
// integer, one can only enter integer values in the widget; se we force
// nonzero steps to be noninteger
if(step && step - floor(step) <= 0) step *= (1. - 1e-16);
if(step && step - floor(step) <= 0) step *= (1. - 1e-7);
return step;
}
void _values2string()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment