Merge pull request #798 from jheinen/master

gr: fixed linewidth bug (lw=0)
This commit is contained in:
Josef Heinen 2017-05-04 16:31:43 +02:00 committed by GitHub
commit 92e9fa2084

View File

@ -338,7 +338,7 @@ end
function gr_set_line(lw, style, c) #, a)
GR.setlinetype(gr_linetype[style])
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)
end