Fix unit conversion in division.

This commit is contained in:
Natalie Weizenbaum 2016-10-19 23:02:33 -07:00
parent 3e2f202dee
commit 5d6ff2eadc

View File

@ -533,7 +533,7 @@ class SassNumber extends Value {
removeFirstWhere/*<String>*/(mutableDenominators2, (denominator) { removeFirstWhere/*<String>*/(mutableDenominators2, (denominator) {
var factor = _conversionFactor(numerator, denominator); var factor = _conversionFactor(numerator, denominator);
if (factor == null) return false; if (factor == null) return false;
value *= factor; value /= factor;
return true; return true;
}, orElse: () { }, orElse: () {
newNumerators.add(numerator); newNumerators.add(numerator);