From 7d002263c65baac80d88a763c04c9e86af29fba1 Mon Sep 17 00:00:00 2001 From: gambas Date: Thu, 28 Jan 2021 04:52:30 +0100 Subject: [PATCH] WebView: Make font size settings more accurate. [GB.QT4.WEBVIEW] * BUG: WebView: Make font size settings more accurate. --- gb.qt4/src/webview/c_websettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gb.qt4/src/webview/c_websettings.cpp b/gb.qt4/src/webview/c_websettings.cpp index 5d55e0b23..7653e7164 100644 --- a/gb.qt4/src/webview/c_websettings.cpp +++ b/gb.qt4/src/webview/c_websettings.cpp @@ -116,9 +116,9 @@ END_METHOD static void handle_font_size(QWebSettings::FontSize size, void *_object, void *_param) { if (READ_PROPERTY) - GB.ReturnInteger(get_settings(_object)->fontSize(size)); + GB.ReturnInteger(get_settings(_object)->fontSize(size) * 76 / 92); else - get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER)); + get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER) * 92 / 76); } BEGIN_PROPERTY(WebSettingsFonts_DefaultSize)