Fix display bug with square units in conversions

This commit is contained in:
Tiffany Bennett 2016-08-19 20:24:30 -04:00
parent e1b7e3ab5e
commit 8d635633b4

View file

@ -392,7 +392,7 @@ impl Context {
let res: f64 = res.0.into();
Ok(try!(self.eval_unit_name(left)).into_iter()
.filter_map(|(k, v)| {
let v = v + res as isize;
let v = v * res as isize;
if v != 0 {
Some((k, v))
} else {