From 0f78f1a7692c7acb3b45b3fdf8832ce80d368d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Kov=C3=A1cs?= Date: Tue, 14 Feb 2023 11:33:23 +0100 Subject: [PATCH] Fix initialization code of the Plot2D related parts --- .../org/geogebra/common/kernel/arithmetic/FunctionNVar.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/main/java/org/geogebra/common/kernel/arithmetic/FunctionNVar.java b/common/src/main/java/org/geogebra/common/kernel/arithmetic/FunctionNVar.java index 5254ca3bee4..7e993d0192c 100644 --- a/common/src/main/java/org/geogebra/common/kernel/arithmetic/FunctionNVar.java +++ b/common/src/main/java/org/geogebra/common/kernel/arithmetic/FunctionNVar.java @@ -806,6 +806,9 @@ public int initIneqs(ExpressionNode fe) { } int b = initIneqs(fe, ineqs, false); ineqs.recomputeSize(); + if (b==2) { + polynomial = true; + } return b; }