mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-11 00:29:41 +01:00
Fix unit conversion in division.
This commit is contained in:
parent
3e2f202dee
commit
5d6ff2eadc
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user