mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	FIX: crash when no WMP
Change-Id: I9bab2e73da05125ee2ca24ac13456fbb82e91714
This commit is contained in:
		
							parent
							
								
									13bd9ca445
								
							
						
					
					
						commit
						405444f042
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -233,8 +233,10 @@ void wxMediaCtrl2::DoSetSize(int x, int y, int width, int height, int sizeFlags) | |||
|         BOOST_LOG_TRIVIAL(info) << "wxMediaCtrl2::DoSetSize: width: " << width << ", height: " << height << ", maxHeight: " << maxHeight; | ||||
|         SetMaxSize({-1, maxHeight}); | ||||
|         Slic3r::GUI::wxGetApp().CallAfter([this] { | ||||
|             GetParent()->Layout(); | ||||
|             GetParent()->Refresh(); | ||||
|             if (auto p = GetParent()) { | ||||
|                 p->Layout(); | ||||
|                 p->Refresh(); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 chunmao.guo
						chunmao.guo