mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 07:12:07 +00:00
Revert "Fix float number not working properly for option min/max" (#11794)
Revert "Fix float number not working properly for option min/max (#11211)"
This reverts commit 69861b57f9.
This commit is contained in:
committed by
GitHub
parent
69861b57f9
commit
263b592885
@@ -4,7 +4,6 @@
|
||||
#include <assert.h>
|
||||
#include <map>
|
||||
#include <climits>
|
||||
#include <cfloat>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <functional>
|
||||
@@ -2456,11 +2455,10 @@ public:
|
||||
// Optional width of an input field.
|
||||
int width = -1;
|
||||
// <min, max> limit of a numeric input.
|
||||
// If not set, the <min, max> is set to <-FLT_MAX, FLT_MAX>
|
||||
// If not set, the <min, max> is set to <INT_MIN, INT_MAX>
|
||||
// By setting min=0, only nonnegative input is allowed.
|
||||
float min = -FLT_MAX;
|
||||
float max = FLT_MAX;
|
||||
bool is_value_valid(double value, int max_precision = 4) const;
|
||||
int min = INT_MIN;
|
||||
int max = INT_MAX;
|
||||
// To check if it's not a typo and a % is missing
|
||||
double max_literal = 1;
|
||||
ConfigOptionMode mode = comSimple;
|
||||
|
||||
Reference in New Issue
Block a user