From e08de30ab6d9203baa643a662a7329ae36308404 Mon Sep 17 00:00:00 2001 From: Sven Date: Thu, 15 Aug 2019 12:28:42 +0200 Subject: [PATCH] Added small section to fix an issue qith QGIS expression generation when locating icons --- plugin/style_converter/core/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin/style_converter/core/__init__.py b/plugin/style_converter/core/__init__.py index 5c1371c..c551917 100644 --- a/plugin/style_converter/core/__init__.py +++ b/plugin/style_converter/core/__init__.py @@ -378,6 +378,16 @@ def _parse_expr(expr, take=None): raise RuntimeError("Data expression operator not implemented: ", op) fields = _get_qgis_fields(expr)[:take] + + #issue starts here and can be checked for and fixed + #when the http_get returns byte information, that 'b' sometimes sticks to icon name + #simply check and if it is there, remove + b_string = "'b'" + for s, item in enumerate(fields): + if b_string in item: + new_item = item[2:-1] + fields[s] = new_item + result = "+".join(fields) return escape_xml(result)