From b10a7a02f8ae625370e92bb94700ef283131242d Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 17 Feb 2022 09:35:42 -0500 Subject: [PATCH] must be >= --- www/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/index.js b/www/index.js index 2f1b366..c79f306 100644 --- a/www/index.js +++ b/www/index.js @@ -98,13 +98,13 @@ function postNormalStatus(string) { function updatePlot() { postNormalStatus(`Rendering y=${math_function.value}...`); - if (minX.value > maxX.value) { - postErrorStatus("minX is larger than maxX!"); + if (minX.value >= maxX.value) { + postErrorStatus("minX must be smaller than maxX!"); return; } - if (minY.value > maxY.value) { - postErrorStatus("minY is larger than maxY!"); + if (minY.value >= maxY.value) { + postErrorStatus("minY must be smaller than maxY!"); return; }