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]