gr: fixed linewidth bug (lw=0)

This commit is contained in:
Josef Heinen 2017-05-04 16:28:49 +02:00
parent 79bf45b823
commit c75e1df190

View File

@ -338,7 +338,7 @@ end
function gr_set_line(lw, style, c) #, a) function gr_set_line(lw, style, c) #, a)
GR.setlinetype(gr_linetype[style]) GR.setlinetype(gr_linetype[style])
w, h = gr_plot_size w, h = gr_plot_size
GR.setlinewidth(max(1, lw / ((w + h) * 0.001))) GR.setlinewidth(max(0, lw / ((w + h) * 0.001)))
gr_set_linecolor(c) #, a) gr_set_linecolor(c) #, a)
end end