mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:10:06 +00:00 
			
		
		
		
	Map layer name comparison should be case insensitive
This commit is contained in:
		
							parent
							
								
									9c27b2cd29
								
							
						
					
					
						commit
						d694764fa1
					
				
					 1 changed files with 8 additions and 7 deletions
				
			
		|  | @ -674,13 +674,14 @@ void MapWidget::AddLayers() | |||
|          const std::string layer = qlayer.toStdString(); | ||||
| 
 | ||||
|          // Draw below layers defined in map style
 | ||||
|          auto it = std::find_if(mapStyle.drawBelow_.cbegin(), | ||||
|                                 mapStyle.drawBelow_.cend(), | ||||
|                                 [&layer](const std::string& styleLayer) -> bool | ||||
|                                 { | ||||
|                                    std::regex re {styleLayer}; | ||||
|                                    return std::regex_match(layer, re); | ||||
|                                 }); | ||||
|          auto it = std::find_if( | ||||
|             mapStyle.drawBelow_.cbegin(), | ||||
|             mapStyle.drawBelow_.cend(), | ||||
|             [&layer](const std::string& styleLayer) -> bool | ||||
|             { | ||||
|                std::regex re {styleLayer, std::regex_constants::icase}; | ||||
|                return std::regex_match(layer, re); | ||||
|             }); | ||||
| 
 | ||||
|          if (it != mapStyle.drawBelow_.cend()) | ||||
|          { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat