diff options
-rw-r--r-- | render/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index 3daf35d04..9f2dc88e0 100644 --- a/render/layout.c +++ b/render/layout.c @@ -853,7 +853,7 @@ void layout_get_object_dimensions(struct box *box, int *width, int *height, int intrinsic_height = content_get_height(box->object); if (intrinsic_height != 0) - *width = intrinsic_width * ((float)(*height)) / + *width = (*height * intrinsic_width) / intrinsic_height; else *width = intrinsic_width; @@ -863,7 +863,7 @@ void layout_get_object_dimensions(struct box *box, int *width, int *height, int intrinsic_height = content_get_height(box->object); if (intrinsic_width != 0) - *height = intrinsic_height * ((float)(*width)) / + *height = (*width * intrinsic_height) / intrinsic_width; else *height = intrinsic_height; |