From e37b67ec3a15e5d9a26134b4aee4a6d11047f7b0 Mon Sep 17 00:00:00 2001 From: Komzpa Date: Tue, 5 Jun 2012 22:57:08 +0300 Subject: [PATCH] logic fix --- src/komap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komap.py b/src/komap.py index faefa34..acc3f1f 100644 --- a/src/komap.py +++ b/src/komap.py @@ -679,8 +679,8 @@ if options.renderer == "mapnik": opacity=relaxedFloat(entry["style"].get("opacity", "1"))) if ("text" in entry["style"] and entry["style"].get("text-position","center")=='center'): ttext = entry["style"]["text"].extract_tags().pop() - sql.add("(("+entry["sql"]+") and "+columnmap.get(ttext, (ttext,))[0] + " is NULL)") - itags.update((escape_sql_column(ttext),)) + sql.add("(("+entry["sql"]+") and "+escape_sql_column(ttext) + " is NULL)") + itags.add(escape_sql_column(ttext)) if ttext in columnmap: itags.update(columnmap[ttext][1]) else: