summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-23 12:39:26 +0200
committerRobin Watts <robin.watts@artifex.com>2016-05-24 13:22:46 +0100
commitb18626a2f5aa61be3173341271243a5ad7922799 (patch)
tree8a0ecdf1a136b8b85cedcf1baed17bd14ea8b256 /source/html
parent28827a69cff9f94df72daf29a68d3ab8b26259d1 (diff)
downloadmupdf-b18626a2f5aa61be3173341271243a5ad7922799.tar.xz
Fix issues uncovered by coverity.
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index cef2acd3..128afee5 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -735,8 +735,8 @@ static void generate_boxes(fz_context *ctx, fz_xml *node, fz_html *top,
static void measure_image(fz_context *ctx, fz_html_flow *node, float max_w, float max_h)
{
float xs = 1, ys = 1, s = 1;
- float image_w = node->content.image->w * 72 / node->content.image->xres;
- float image_h = node->content.image->h * 72 / node->content.image->yres;
+ float image_w = node->content.image->w * 72.0f / node->content.image->xres;
+ float image_h = node->content.image->h * 72.0f / node->content.image->yres;
node->x = 0;
node->y = 0;
if (image_w > max_w)