ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 4ba4d45da9f1f1df28fd68a29091e57bd30a9d61 Author: Ptyl Dragon <p...@cloudon.com> Date: Fri Nov 1 16:11:21 2013 +0200 fix less than 1 step limit Change-Id: Ic5fd714ff975b6e5afbe7ff78f3fc1da398a658d diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m index a661539..89267e5 100644 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m +++ b/ios/shared/ios_sharedlo/objective_c/view_controllers/MLOTestingTileParameter.m @@ -34,18 +34,18 @@ static const CGFloat DEFAULT_STEP_VALUE = 1; self.widthIsNotHeightExtractor = widthIsNotHeightExtractor; self.defaultValue = defaultValue; [self initLabel:label]; - self.dataStepper = [self createStepper]; - self.stepStepper = [self createStepper]; + self.dataStepper = [self stepperWithMinValue:-MAXFLOAT]; + self.stepStepper = [self stepperWithMinValue:1]; [self initDataTextField]; [self initStepTextField]; } return self; } --(UIStepper *) createStepper{ +-(UIStepper *) stepperWithMinValue:(CGFloat) minValue{ UIStepper * stepper = [UIStepper new]; stepper.maximumValue = MAXFLOAT; - stepper.minimumValue = -MAXFLOAT; + stepper.minimumValue = minValue; stepper.stepValue = DEFAULT_STEP_VALUE; stepper.autorepeat = YES; stepper.continuous = NO; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits