mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Probably fix for #6270 - Segfault during startup in prusa-slicer-git 2.3.0.r24.gd06aa6069-1
This commit is contained in:
		
							parent
							
								
									b875fd2755
								
							
						
					
					
						commit
						de1d36cc9a
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -544,9 +544,12 @@ void MainFrame::init_tabpanel() | |||
| 
 | ||||
|     m_tabpanel->Bind(wxEVT_NOTEBOOK_PAGE_CHANGED, [this](wxBookCtrlEvent& e) { | ||||
| #if ENABLE_VALIDATE_CUSTOM_GCODE | ||||
|         Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(e.GetOldSelection())); | ||||
|         if (old_tab) | ||||
|             old_tab->validate_custom_gcodes(); | ||||
|         if (int old_selection = e.GetOldSelection(); | ||||
|             old_selection != wxNOT_FOUND && old_selection < m_tabpanel->GetPageCount()) { | ||||
|             Tab* old_tab = dynamic_cast<Tab*>(m_tabpanel->GetPage(old_selection)); | ||||
|             if (old_tab) | ||||
|                 old_tab->validate_custom_gcodes(); | ||||
|         } | ||||
| #endif // ENABLE_VALIDATE_CUSTOM_GCODE
 | ||||
| 
 | ||||
|         wxWindow* panel = m_tabpanel->GetCurrentPage(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka