Skip to content

Commit

Permalink
fix lower case problem
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmruder committed Jan 15, 2025
1 parent 40dc061 commit 075864f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qgis_server_light/interface/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class QslGetMapJob(QslAbstractJob):

def get_layer_by_name(self, name: str) -> Raster | Vector | Custom:
for layer in self.raster_layers + self.vector_layers + self.custom_layers:
if layer.name.lower() == name.lower():
if layer.name == name:
return layer
raise AttributeError(f'No layer with name "{name} was found."')

Expand Down

0 comments on commit 075864f

Please sign in to comment.