Fix issue in function "bar"

This commit is contained in:
Alexey Milovidov 2021-01-15 13:17:09 +03:00
parent 461d370e8d
commit 33d045b72e

View File

@ -14,7 +14,7 @@ namespace UnicodeBar
{
double getWidth(double x, double min, double max, double max_width)
{
if (isNaN(x))
if (isNaN(x) || isNaN(min) || isNaN(max))
return 0;
if (x <= min)