mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Merge branch 'dk_desktop'
This commit is contained in:
		
						commit
						6d13d32416
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -28,7 +28,7 @@ namespace { | ||||||
| std::string escape_string(const std::string& str) | std::string escape_string(const std::string& str) | ||||||
| { | { | ||||||
|     // The buffer needs to be bigger if escaping <,>,&
 |     // The buffer needs to be bigger if escaping <,>,&
 | ||||||
|     std::vector<char> out(str.size() * 2, 0); |     std::vector<char> out(str.size() * 4, 0); | ||||||
|     char *outptr = out.data(); |     char *outptr = out.data(); | ||||||
|     for (size_t i = 0; i < str.size(); ++ i) { |     for (size_t i = 0; i < str.size(); ++ i) { | ||||||
|         char c = str[i]; |         char c = str[i]; | ||||||
|  | @ -45,6 +45,8 @@ std::string escape_string(const std::string& str) | ||||||
|         } else if (c == '\\') { // backslash character
 |         } else if (c == '\\') { // backslash character
 | ||||||
|             (*outptr ++) = '\\'; |             (*outptr ++) = '\\'; | ||||||
|             (*outptr ++) = '\\'; |             (*outptr ++) = '\\'; | ||||||
|  |             (*outptr ++) = '\\'; | ||||||
|  |             (*outptr ++) = '\\'; | ||||||
|         //  Reserved characters   
 |         //  Reserved characters   
 | ||||||
|         // At Ubuntu, all these characters must NOT be escaped for desktop integration to work
 |         // At Ubuntu, all these characters must NOT be escaped for desktop integration to work
 | ||||||
|         /*
 |         /*
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Kocik
						David Kocik