]> git.eshelyaron.com Git - emacs.git/commitdiff
* calc/calc-units.el (calc-quick-units): Use the proper units expression.
authorJay Belanger <jay.p.belanger@gmail.com>
Sat, 19 May 2012 03:11:09 +0000 (22:11 -0500)
committerJay Belanger <jay.p.belanger@gmail.com>
Sat, 19 May 2012 03:11:09 +0000 (22:11 -0500)
lisp/calc/calc-units.el

index ffcba17f53004609c25ee1ef353bf2eecd2dc066..6d876cf79ba0a1d47c4aa29da06cb2d5dae7c0ff 100644 (file)
@@ -374,7 +374,7 @@ Entries are (SYMBOL EXPR DOC-STRING TEMP-TYPE BASE-UNITS).")
      (if (math-units-in-expr-p expr nil)
          (progn
            (if calc-ensure-consistent-units
-               (math-check-unit-consistency expr units))
+               (math-check-unit-consistency expr (nth pos units)))
            (calc-enter-result 1 (format "cun%d" num)
                               (math-convert-units expr (nth pos units))))
        (calc-enter-result 1 (format "*un%d" num)