From d1843b455aa1a1411c9fbeb5cf99e5472a4ad2af Mon Sep 17 00:00:00 2001 From: Ad5001 Date: Wed, 24 May 2023 03:58:13 +0200 Subject: [PATCH] Fixing issue with sums & latex variables. --- .../qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js | 2 +- .../qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js index b9e04ce..f132f47 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommegainsbode.js @@ -54,7 +54,7 @@ class SommeGainsBode extends Common.ExecutableObject { } getLatexString() { - return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Gain Bode').map(Latex.variable).join(' + ')}` + return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Gain Bode').map(name => Latex.variable(name)).join(' + ')}` } execute(x = 0) { diff --git a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.js b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.js index 8f16693..b9abafd 100644 --- a/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.js +++ b/LogarithmPlotter/qml/eu/ad5001/LogarithmPlotter/js/objs/sommephasesbode.js @@ -53,7 +53,7 @@ class SommePhasesBode extends Common.ExecutableObject { } getLatexString() { - return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Phase Bode').map(Latex.variable).join(' + ')}` + return `${Latex.variable(this.name)} = ${Objects.getObjectsName('Phase Bode').map(name => Latex.variable(name)).join(' + ')}` } execute(x=1) {