must be >=
This commit is contained in:
parent
7525b3acf2
commit
b10a7a02f8
@ -98,13 +98,13 @@ function postNormalStatus(string) {
|
|||||||
function updatePlot() {
|
function updatePlot() {
|
||||||
postNormalStatus(`Rendering y=${math_function.value}...`);
|
postNormalStatus(`Rendering y=${math_function.value}...`);
|
||||||
|
|
||||||
if (minX.value > maxX.value) {
|
if (minX.value >= maxX.value) {
|
||||||
postErrorStatus("minX is larger than maxX!");
|
postErrorStatus("minX must be smaller than maxX!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (minY.value > maxY.value) {
|
if (minY.value >= maxY.value) {
|
||||||
postErrorStatus("minY is larger than maxY!");
|
postErrorStatus("minY must be smaller than maxY!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user