summaryrefslogtreecommitdiff
path: root/source/html/css-apply.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-12 15:37:56 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-12-03 12:25:51 +0100
commitd50623858386a8d99f71e6361296a50db164f103 (patch)
tree72f139f30204421dbbe19724a73007cb9e4d1686 /source/html/css-apply.c
parenta5f282cac059b279823520ae3e3dfd2138a1fe23 (diff)
downloadmupdf-d50623858386a8d99f71e6361296a50db164f103.tar.xz
html: Fix bug in percentage from_number calculations.
Diffstat (limited to 'source/html/css-apply.c')
-rw-r--r--source/html/css-apply.c2
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;
}
}