Commit b59f40f5 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #182: new [table] don't display a graph by default. Ensure that "stroke-width" is positive

parent 90698141
......@@ -5861,7 +5861,8 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
gui_s(symoutline->s_name);
gui_s("stroke-width");
gui_f(style == PLOTSTYLE_POINTS ? 0 : y_inverse);
gui_f(style == PLOTSTYLE_POINTS ? 0 :
y_inverse * (y_inverse >= 0 ? 1 : -1));
gui_end_array();
/* tags */
......@@ -5973,7 +5974,7 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
gui_start_array();
gui_s("stroke-width");
gui_f(y_inverse);
gui_f(y_inverse * (y_inverse >= 0 ? 1 : -1));
gui_s("stroke");
gui_s(symoutline->s_name);
gui_s("fill");
......@@ -6052,7 +6053,7 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist,
gui_start_array();
gui_s("stroke-width");
gui_f(linewidth * y_inverse);
gui_f(linewidth * (y_inverse * (y_inverse >= 0 ? 1 : -1)));
gui_s("stroke");
gui_s(symoutline->s_name);
gui_s("fill");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment