diff --git a/contrib/mobile/iOS/Onelab/Onelab-Info.plist b/contrib/mobile/iOS/Onelab/Onelab-Info.plist index 27ba696f010928be46d7befa09ef84c301aad889..fba6675712ef298035ccec2f9624dfe7bc6b28d8 100644 --- a/contrib/mobile/iOS/Onelab/Onelab-Info.plist +++ b/contrib/mobile/iOS/Onelab/Onelab-Info.plist @@ -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> diff --git a/contrib/mobile/iOS/Onelab/ParametersViewController.mm b/contrib/mobile/iOS/Onelab/ParametersViewController.mm index 555d0861dde90f7bf3d342ce2e42ba5a8a02f3f3..e77288f06e8a9bf6e1a4472aa842838e45e344c2 100644 --- a/contrib/mobile/iOS/Onelab/ParametersViewController.mm +++ b/contrib/mobile/iOS/Onelab/ParametersViewController.mm @@ -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]; }