From 129e486f1b3544d5617223730778a779faefbde9 Mon Sep 17 00:00:00 2001 From: Jingxuan He Date: Wed, 15 Jun 2022 17:29:11 +0200 Subject: [PATCH] Fix a potential wrong operator bug --- tools/python/stylesheet/drules_to_mapcss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/stylesheet/drules_to_mapcss.py b/tools/python/stylesheet/drules_to_mapcss.py index eee2922eb77..2f25bee4647 100644 --- a/tools/python/stylesheet/drules_to_mapcss.py +++ b/tools/python/stylesheet/drules_to_mapcss.py @@ -405,7 +405,7 @@ def color_to_properties(color, prefix=""): def dedup_zooms(lst, item): if lst: lst[-1] = lst[-1][:] - if lst[-1][0] == item[0] and lst[-1][3] in item[3] and lst[-1][4] == item[4] and lst[-1][2] >= item[2] and lst[-1][1] <= item[1]: + if lst[-1][0] == item[0] and lst[-1][3] == item[3] and lst[-1][4] == item[4] and lst[-1][2] >= item[2] and lst[-1][1] <= item[1]: return lst if lst[-1][0] == item[0] and lst[-1][3] == item[3] and lst[-1][4] == item[4] and lst[-1][2] == (item[1] - 1): lst[-1][2] = item[2]