gr: fixed problem with blank figures

see https://github.com/jheinen/GR.jl/issues/202
This commit is contained in:
Josef Heinen 2019-03-25 17:15:06 +01:00
parent 47e48e5d27
commit cbc379daa9

View File

@ -236,6 +236,7 @@ end
function gr_fill_viewport(vp::AVec{Float64}, c)
GR.savestate()
GR.selntran(0)
GR.setscale(0)
GR.setfillintstyle(GR.INTSTYLE_SOLID)
gr_set_fillcolor(c)
GR.fillrect(vp...)