mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	FIX:fixed sending print failure due to long plate name
Change-Id: I89f32f7d7f214d55051e736f834e0e49d7c808ab
This commit is contained in:
		
							parent
							
								
									0aa638c729
								
							
						
					
					
						commit
						f00dc9c675
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -70,9 +70,11 @@ std::string PrintJob::truncate_string(const std::string& str, size_t maxLength) | |||
|         return str; | ||||
|     } | ||||
| 
 | ||||
|     std::string truncatedStr = str.substr(0, maxLength - 3); | ||||
|     wxString local_str = wxString::FromUTF8(str); | ||||
|     wxString truncatedStr = local_str.Mid(0, maxLength - 3); | ||||
|     truncatedStr.append("..."); | ||||
|     return truncatedStr; | ||||
| 
 | ||||
|     return truncatedStr.utf8_string(); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tao wang
						tao wang