summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorJay Belanger <jay.p.belanger@gmail.com>2006-01-21 04:52:06 +0000
committerJay Belanger <jay.p.belanger@gmail.com>2006-01-21 04:52:06 +0000
commit6a056c5d38f7059b7c70e784dcdf62eb00d561d7 (patch)
tree4330e7937ced1b49c3dc5a5000b4c7470280c228 /lisp
parenta6c72dc393be9cf3629bf62c3b65f737533b5010 (diff)
downloademacs-6a056c5d38f7059b7c70e784dcdf62eb00d561d7.tar.gz
emacs-6a056c5d38f7059b7c70e784dcdf62eb00d561d7.tar.bz2
emacs-6a056c5d38f7059b7c70e784dcdf62eb00d561d7.zip
(math-add-symb-fancy): Check the length of the correct variable.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/calc/calc-arith.el2
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d84868c746c..d8beecfd4a0 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,9 @@
* calc/calcalg2.el (calc-sum-rec): Fix the sum when the lower
limit is 0.
+ * calc/calc-arith.el (math-add-symb-fancy): Check the length of
+ the correct variable.
+
2006-01-20 Carsten Dominik <dominik@science.uva.nl>
* textmodes/org.el: (org-open-at-point): Fixed bug with matching a
diff --git a/lisp/calc/calc-arith.el b/lisp/calc/calc-arith.el
index dc341cb7aec..64e0b4b7d10 100644
--- a/lisp/calc/calc-arith.el
+++ b/lisp/calc/calc-arith.el
@@ -1201,7 +1201,7 @@
(and (math-known-scalarp b)
(math-add (nth 1 a) b))))
(and (eq (car-safe b) 'calcFunc-idn)
- (= (length a) 2)
+ (= (length b) 2)
(or (and (math-square-matrixp a)
(math-add a (math-mimic-ident (nth 1 b) a)))
(and (math-known-scalarp a)