From d50623858386a8d99f71e6361296a50db164f103 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Nov 2014 15:37:56 +0100 Subject: html: Fix bug in percentage from_number calculations. --- source/html/css-apply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html') 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; } } -- cgit v1.2.3