diff options
| -rw-r--r-- | lisp/calc/calc-units.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index 839bac77581..a7c4b20e30d 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -1222,7 +1222,9 @@ If EXPR is nil, return nil." | |||
| 1222 | (and un ud | 1222 | (and un ud |
| 1223 | (if (and (equal (nth 4 un) (nth 4 ud)) | 1223 | (if (and (equal (nth 4 un) (nth 4 ud)) |
| 1224 | (eq pow1 pow2)) | 1224 | (eq pow1 pow2)) |
| 1225 | (math-to-standard-units (list '/ n d) nil) | 1225 | (if (eq pow1 1) |
| 1226 | (math-to-standard-units (list '/ n d) nil) | ||
| 1227 | (list '^ (math-to-standard-units (list '/ n d) nil) pow1)) | ||
| 1226 | (let (ud1) | 1228 | (let (ud1) |
| 1227 | (setq un (nth 4 un) | 1229 | (setq un (nth 4 un) |
| 1228 | ud (nth 4 ud)) | 1230 | ud (nth 4 ud)) |