GR: fix NaN tick size (#3813)

This commit is contained in:
t-bltg 2021-09-15 12:28:53 +02:00 committed by GitHub
parent 175c87cec6
commit cd6a8c87b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -724,8 +724,8 @@ function gr_get_ticks_size(ticks, rot)
w, h = 0.0, 0.0
for (cv, dv) in zip(ticks...)
wi, hi = gr_text_size(dv, rot)
w = max(w, wi)
h = max(h, hi)
w = NaNMath.max(w, wi)
h = NaNMath.max(h, hi)
end
return w, h
end