summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkoan <jkoan@gmx.de>2020-10-14 13:45:06 +0200
committerjkoan <jkoan@gmx.de>2020-10-14 13:45:06 +0200
commitcfab2f64259c0d6acbfd4343c1821fd64ee8528a (patch)
treeaf8e343361014aca89462e83bbed0fda0e323499
parent0406e3f82200822a281a1ecbe9d814c48dec85c3 (diff)
downloadnavit-cfab2f64259c0d6acbfd4343c1821fd64ee8528a.tar.gz
fix:graphics:Some final touches for svg_debug
-rw-r--r--navit/attr_def.h1
-rw-r--r--navit/graphics/svg_debug/graphics_svg_debug.c10
2 files changed, 6 insertions, 5 deletions
diff --git a/navit/attr_def.h b/navit/attr_def.h
index 45764ebb2..e498a40a8 100644
--- a/navit/attr_def.h
+++ b/navit/attr_def.h
@@ -404,6 +404,7 @@ ATTR(street_destination)
ATTR(exit_to)
ATTR(street_destination_forward)
ATTR(street_destination_backward)
+ATTR(outputdir)
ATTR2(0x0003ffff,type_string_end)
ATTR2(0x00040000,type_special_begin)
ATTR(order)
diff --git a/navit/graphics/svg_debug/graphics_svg_debug.c b/navit/graphics/svg_debug/graphics_svg_debug.c
index 4015c14bb..cad38a437 100644
--- a/navit/graphics/svg_debug/graphics_svg_debug.c
+++ b/navit/graphics/svg_debug/graphics_svg_debug.c
@@ -579,19 +579,19 @@ static struct graphics_priv *graphics_svg_debug_new(struct navit *nav, struct gr
// Read configuration
this->width = 32;
- if ((attr = attr_search(attrs, NULL, attr_w)))
+ if ((attr = attr_search(attrs, attr_w)))
this->width = attr->u.num;
this->height = 32;
- if ((attr = attr_search(attrs, NULL, attr_h)))
+ if ((attr = attr_search(attrs, attr_h)))
this->height = attr->u.num;
this->outputdir = g_get_tmp_dir();
- if ((attr = attr_search(attrs, NULL, attr_outputdir)))
+ if ((attr = attr_search(attrs, attr_outputdir)))
this->outputdir = attr->u.str;
- // Get prlugin to proxy
+ // Get plugin to proxy
proxy_gra=NULL;
- if ((attr = attr_search(attrs, NULL, attr_name))) {
+ if ((attr = attr_search(attrs, attr_name))) {
if(attr->u.str[0] != '\0'){
proxy_gra=plugin_get_category_graphics(attr->u.str);
}