mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	FIX: crash when switch device page to cali page
Jira: 4358 Change-Id: Ic4d23bd7e31c7419516a3ab55a4d9a2e2072cd47 (cherry picked from commit c74bb0f33870e19f3ae3ea98be06d584c02abe4e)
This commit is contained in:
		
							parent
							
								
									76a9c62ad0
								
							
						
					
					
						commit
						64ed5c86a5
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -1535,8 +1535,11 @@ void CalibrationPresetPage::set_cali_method(CalibrationMethod method) | |||
|                 m_custom_range_panel->set_titles(titles); | ||||
| 
 | ||||
|                 wxArrayString values; | ||||
|                 ExtruderType extruder_type  = ExtruderType::etDirectDrive; | ||||
|                 Preset* printer_preset = get_printer_preset(curr_obj, get_nozzle_value()); | ||||
|                 int extruder_type  = printer_preset->config.opt_enum("extruder_type", 0); | ||||
|                 if (printer_preset) { | ||||
|                     extruder_type = ExtruderType(printer_preset->config.opt_enum("extruder_type", 0)); | ||||
|                 } | ||||
|                 if (extruder_type == ExtruderType::etBowden) { | ||||
|                     values.push_back(_L("0")); | ||||
|                     values.push_back(_L("0.5")); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 zhimin.zeng
						zhimin.zeng