mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 20:51:12 -06:00 
			
		
		
		
	Fix of #2237
This commit is contained in:
		
							parent
							
								
									84f09df03e
								
							
						
					
					
						commit
						41f29c9f09
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -520,8 +520,14 @@ void SpinCtrl::BUILD() { | |||
| 
 | ||||
|         // Forcibly set the input value for SpinControl, since the value 
 | ||||
| 	    // inserted from the clipboard is not updated under OSX
 | ||||
|         if (tmp_value > -9999) | ||||
|             dynamic_cast<wxSpinCtrl*>(window)->SetValue(tmp_value); | ||||
|         if (tmp_value > -9999) { | ||||
|             wxSpinCtrl* spin = dynamic_cast<wxSpinCtrl*>(window); | ||||
|             spin->SetValue(tmp_value); | ||||
| 
 | ||||
|             // But in SetValue() is executed m_text_ctrl->SelectAll(), so
 | ||||
|             // discard this selection and set insertion point to the end of string
 | ||||
|             spin->GetText()->SetInsertionPointEnd(); | ||||
|         } | ||||
| #endif | ||||
| 	}), temp->GetId()); | ||||
| 	 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka