From c808c6d4e4667a1fe79b72d4452270b7fb8e3372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 18 May 2025 12:54:50 +0200 Subject: [PATCH] allow variable x when checking if from math formula is valid --- Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp index 40b1761..74c4235 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp @@ -427,6 +427,9 @@ QString Trace::getMathFormulaError() const break; } } + if(varName == "x") { + found = true; + } if(!found) { return "Unknown variable: "+varName; }