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

fix crash with slider

parent cb7d20fb
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0.4</string>
<string>1.0.5</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIFileSharingEnabled</key>
......
......@@ -112,7 +112,10 @@
ParameterNumberStepper *param = [[ParameterNumberStepper alloc] initWithNumber:p];
[section addObject:param];
}
else if(p.getMin() == p.getMax() || p.getReadOnly()) { // text box
else if(p.getMin() >= p.getMax() ||
p.getMin() == -onelab::number::maxNumber() ||
p.getMax() == onelab::number::maxNumber() ||
p.getReadOnly()) { // text box
ParameterNumberTextbox *param = [[ParameterNumberTextbox alloc] initWithNumber:p];
[section addObject:param];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment