From cb84450654997735c1a610117e105c1a9eafdaf0 Mon Sep 17 00:00:00 2001 From: Yuri Kobets Date: Fri, 19 May 2023 02:55:10 +0300 Subject: [PATCH] fix: render_test._/"acid1.htm" test fails on x86 architecture Issue #265 --- src/css_properties.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/css_properties.cpp b/src/css_properties.cpp index 1efccb609..902cce67c 100644 --- a/src/css_properties.cpp +++ b/src/css_properties.cpp @@ -1,5 +1,6 @@ #include "html.h" #include "css_properties.h" +#include #define offset(member) ((uint_ptr)&this->member - (uint_ptr)this) @@ -221,7 +222,7 @@ void litehtml::css_properties::compute(const element* el, const document::ptr& d m_line_height = m_font_metrics.height; } else if(m_css_line_height.units() == css_units_none) { - m_line_height = (int) (m_css_line_height.val() * font_size); + m_line_height = (int) std::nearbyint(m_css_line_height.val() * font_size); } else { m_line_height = doc->to_pixels(m_css_line_height, font_size, font_size); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy