summaryrefslogtreecommitdiff
path: root/js/Sinks/CANIMXY3D.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sinks/CANIMXY3D.js')
-rw-r--r--js/Sinks/CANIMXY3D.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/Sinks/CANIMXY3D.js b/js/Sinks/CANIMXY3D.js
index 9c5caacb..df6166aa 100644
--- a/js/Sinks/CANIMXY3D.js
+++ b/js/Sinks/CANIMXY3D.js
@@ -72,21 +72,21 @@ ok=false;
}
if (N<2) {
for (i=1;i<=nbr_curves;i+=1) {
-if (clrs(i)>0) {
+if (clrs[i-1]>0) {
mess=[[mess],["Buffer size must be at least 2 or Change a color (must be <0)"],[" "]];
ok=false;
}
}
}
-if (vec_y(1)>=vec_y(2)) {
+if (vec_y[1-1]>=vec_y[2-1]) {
mess=[[mess],["Ymax must be higher than Ymin"],[" "]];
ok=false;
}
-if (vec_x(1)>=vec_x(2)) {
+if (vec_x[1-1]>=vec_x[2-1]) {
mess=[[mess],["Xmax must be higher than Xmin"],[" "]];
ok=false;
}
-if (vec_z(1)>=vec_z(2)) {
+if (vec_z[1-1]>=vec_z[2-1]) {
mess=[[mess],["Zmax must be higher than Zmin"],[" "]];
ok=false;
}