mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-25 01:31:14 -06:00 
			
		
		
		
	Fixed a bug when reverting to an old value with comma-separated doubles
This commit is contained in:
		
							parent
							
								
									4960b125c5
								
							
						
					
					
						commit
						afca744d37
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -115,7 +115,7 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt | ||||||
| 				str.pop_back(); | 				str.pop_back(); | ||||||
| 				percent = true; | 				percent = true; | ||||||
| 			} | 			} | ||||||
|             double val = string_to_double_decimal_point(str); |             double val = std::stod(str); // locale-dependent (on purpose - the input is the actual content of the field)
 | ||||||
| 			config.set_key_value(opt_key, new ConfigOptionFloatOrPercent(val, percent)); | 			config.set_key_value(opt_key, new ConfigOptionFloatOrPercent(val, percent)); | ||||||
| 			break;} | 			break;} | ||||||
| 		case coPercent: | 		case coPercent: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Matena
						Lukas Matena