mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-30 23:40:06 +00:00 
			
		
		
		
	Fix backslash interpretation in IconFile and Image statements
This commit is contained in:
		
							parent
							
								
									c5a56680ea
								
							
						
					
					
						commit
						8326b2f2bf
					
				
					 3 changed files with 12 additions and 6 deletions
				
			
		|  | @ -6,6 +6,7 @@ | |||
| 
 | ||||
| #include <execution> | ||||
| 
 | ||||
| #include <QDir> | ||||
| #include <QUrl> | ||||
| #include <boost/unordered/unordered_flat_map.hpp> | ||||
| 
 | ||||
|  | @ -44,7 +45,8 @@ struct PlacefileIconInfo | |||
|    { | ||||
|       // Resolve using base URL
 | ||||
|       auto baseUrl = QUrl::fromUserInput(QString::fromStdString(baseUrlString)); | ||||
|       auto relativeUrl = QUrl(QString::fromStdString(iconFile->filename_)); | ||||
|       auto relativeUrl = QUrl(QDir::fromNativeSeparators( | ||||
|          QString::fromStdString(iconFile->filename_))); | ||||
|       resolvedUrl_     = baseUrl.resolved(relativeUrl).toString().toStdString(); | ||||
|    } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat