Do not use 0 value because it is default

This commit is contained in:
Constantin Shalnev 2015-11-13 15:53:06 +03:00
parent d09385149a
commit fb4582596f

View file

@ -292,7 +292,7 @@ def komap_mapswithme(options):
if st.get('shield-text-halo-radius', 0) != 0:
dr_element.shield.stroke_color = mwm_encode_color(colors, st, "shield-text-halo", "white")
dr_element.shield.priority = min(19100, (16000 + int(st.get('z-index', 0))))
if 'shield-min-distance' in st:
if st.get('shield-min-distance', 0) != 0:
dr_element.shield.min_distance = int(st.get('shield-min-distance', 0))
if has_icons: