sc/source/filter/html/htmlpars.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 62f071f0904cd00c401f732ce6d5c9248e3944f6
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Fri Mar 11 18:58:58 2022 +0200
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Mar 14 21:54:33 2022 +0100

    tdf#147767 html pasted to calc has very small font
    
    regression from
        commit da9bba7cc3c243e936daea689fea64ecaf110f35
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Mon Jul 26 10:10:17 2021 +0200
        use officecfg for SvxHtmlOptions
    
    Change-Id: Ia84d713a18b4c694af98478681996b6156cbb928
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131393
    Tested-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 15c097010f1567d933abf046bc43447bd7415e4c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131364
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    (cherry picked from commit f7f28aa16efd4a113df0f8646fbb9b100acda8ec)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131469
    Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com>
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/filter/html/htmlpars.cxx 
b/sc/source/filter/html/htmlpars.cxx
index ae93c3e56021..f86b9e3b145c 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -188,13 +188,13 @@ ScHTMLParser::ScHTMLParser( EditEngine* pEditEngine, 
ScDocument* pDoc ) :
     ScEEParser( pEditEngine ),
     mpDoc( pDoc )
 {
-    maFontHeights[0] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_1::get();
-    maFontHeights[1] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_2::get();
-    maFontHeights[2] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_3::get();
-    maFontHeights[3] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_4::get();
-    maFontHeights[4] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_5::get();
-    maFontHeights[5] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_6::get();
-    maFontHeights[6] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_7::get();
+    maFontHeights[0] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_1::get() * 20;
+    maFontHeights[1] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_2::get() * 20;
+    maFontHeights[2] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_3::get() * 20;
+    maFontHeights[3] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_4::get() * 20;
+    maFontHeights[4] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_5::get() * 20;
+    maFontHeights[5] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_6::get() * 20;
+    maFontHeights[6] = 
officecfg::Office::Common::Filter::HTML::Import::FontSize::Size_7::get() * 20;
 }
 
 ScHTMLParser::~ScHTMLParser()

Reply via email to