mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Merge remote-tracking branch 'origin/ys_scaling'
This commit is contained in:
		
						commit
						6adb2e7aea
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -393,6 +393,12 @@ void TextCtrl::set_value(const boost::any& value, bool change_event/* = false*/) | ||||||
|     else |     else | ||||||
|         dynamic_cast<wxTextCtrl*>(window)->SetValue(boost::any_cast<wxString>(value)); |         dynamic_cast<wxTextCtrl*>(window)->SetValue(boost::any_cast<wxString>(value)); | ||||||
|     m_disable_change_event = false; |     m_disable_change_event = false; | ||||||
|  | 
 | ||||||
|  |     if (!change_event) { | ||||||
|  |         wxString ret_str = static_cast<wxTextCtrl*>(window)->GetValue(); | ||||||
|  |         // update m_value to correct work of next value_was_changed()
 | ||||||
|  |         get_value_by_opt_type(ret_str); | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void TextCtrl::set_last_meaningful_value() | void TextCtrl::set_last_meaningful_value() | ||||||
|  | @ -410,7 +416,7 @@ void TextCtrl::set_na_value() | ||||||
| boost::any& TextCtrl::get_value() | boost::any& TextCtrl::get_value() | ||||||
| { | { | ||||||
| 	wxString ret_str = static_cast<wxTextCtrl*>(window)->GetValue(); | 	wxString ret_str = static_cast<wxTextCtrl*>(window)->GetValue(); | ||||||
| 	// modifies ret_string!
 | 	// update m_value
 | ||||||
| 	get_value_by_opt_type(ret_str); | 	get_value_by_opt_type(ret_str); | ||||||
| 
 | 
 | ||||||
| 	return m_value; | 	return m_value; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka