style: Fix ex computation with more than one operand.

This commit is contained in:
Emilio Cobos Álvarez 2017-10-10 18:10:55 +02:00
parent 826352ab4c
commit 90ee40f43f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 56 additions and 1 deletions

View file

@ -372,7 +372,7 @@ impl CalcNode {
ret.em = Some(ret.em.unwrap_or(0.) + em * factor);
}
FontRelativeLength::Ex(ex) => {
ret.ex = Some(ret.em.unwrap_or(0.) + ex * factor);
ret.ex = Some(ret.ex.unwrap_or(0.) + ex * factor);
}
FontRelativeLength::Ch(ch) => {
ret.ch = Some(ret.ch.unwrap_or(0.) + ch * factor);