|
| 1 | +diff --git i/xs/src/libslic3r/Config.hpp w/xs/src/libslic3r/Config.hpp |
| 2 | +index 49e999b..d9b65d8 100644 |
| 3 | +--- i/xs/src/libslic3r/Config.hpp |
| 4 | ++++ w/xs/src/libslic3r/Config.hpp |
| 5 | +@@ -65,7 +65,7 @@ class ConfigOptionFloat : public ConfigOption |
| 6 | + |
| 7 | + bool deserialize(std::string str) { |
| 8 | + std::istringstream iss(str); |
| 9 | +- return iss >> this->value; |
| 10 | ++ return bool(iss >> this->value); |
| 11 | + }; |
| 12 | + }; |
| 13 | + |
| 14 | +@@ -124,7 +124,7 @@ class ConfigOptionInt : public ConfigOption |
| 15 | + |
| 16 | + bool deserialize(std::string str) { |
| 17 | + std::istringstream iss(str); |
| 18 | +- return iss >> this->value; |
| 19 | ++ return bool(iss >> this->value); |
| 20 | + }; |
| 21 | + }; |
| 22 | + |
| 23 | +@@ -249,7 +249,7 @@ class ConfigOptionPercent : public ConfigOption |
| 24 | + bool deserialize(std::string str) { |
| 25 | + // don't try to parse the trailing % since it's optional |
| 26 | + std::istringstream iss(str); |
| 27 | +- return iss >> this->value; |
| 28 | ++ return bool(iss >> this->value); |
| 29 | + }; |
| 30 | + }; |
| 31 | + |
| 32 | +@@ -279,7 +279,7 @@ class ConfigOptionFloatOrPercent : public ConfigOption |
| 33 | + bool deserialize(std::string str) { |
| 34 | + this->percent = str.find_first_of("%") != std::string::npos; |
| 35 | + std::istringstream iss(str); |
| 36 | +- return iss >> this->value; |
| 37 | ++ return bool(iss >> this->value); |
| 38 | + }; |
| 39 | + }; |
| 40 | + |
0 commit comments