diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-11-12 15:37:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-12-03 12:25:51 +0100 |
commit | d50623858386a8d99f71e6361296a50db164f103 (patch) | |
tree | 72f139f30204421dbbe19724a73007cb9e4d1686 /source/html | |
parent | a5f282cac059b279823520ae3e3dfd2138a1fe23 (diff) | |
download | mupdf-d50623858386a8d99f71e6361296a50db164f103.tar.xz |
html: Fix bug in percentage from_number calculations.
Diffstat (limited to 'source/html')
-rw-r--r-- | source/html/css-apply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/css-apply.c b/source/html/css-apply.c index d5ceb24d..325b0dab 100644 --- a/source/html/css-apply.c +++ b/source/html/css-apply.c @@ -763,7 +763,7 @@ from_number(struct number number, float em, float width) default: case N_NUMBER: return number.value; case N_SCALE: return number.value * em; - case N_PERCENT: return number.value * width; + case N_PERCENT: return number.value * 0.01 * width; } } |