From 665970e71aa0712179d0b175d4b521a6dfd1dd2d Mon Sep 17 00:00:00 2001 From: Darko Luketic Date: Mon, 29 Nov 2021 00:26:49 +0100 Subject: [PATCH] upstream changes --- crayon_formatter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crayon_formatter.class.php b/crayon_formatter.class.php index 2cdff2c..3cf3c08 100644 --- a/crayon_formatter.class.php +++ b/crayon_formatter.class.php @@ -115,8 +115,8 @@ class CrayonFormatter { $_line_height = $hl->setting_val(CrayonSettings::LINE_HEIGHT); // Don't allow line height to be less than font size $line_height = ($_line_height > $_font_size ? $_line_height : $_font_size) . 'px !important;'; - $toolbar_height = $_font_size * 1.5 . 'px !important;'; - $info_height = $_font_size * 1.4 . 'px !important;'; + $toolbar_height = floatval($_font_size) * 1.5 . 'px !important;'; + $info_height = floatval($_font_size) * 1.4 . 'px !important;'; $font_style .= "font-size: $_font_size line-height: $line_height"; $toolbar_style .= "font-size: $_font_size";