diff options
author | Tor Lillqvist <tml@iki.fi> | 2018-11-22 21:02:20 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-11 15:46:53 +0200 |
commit | 58e0e071d7c00adb42c1e9bb7487819bb94fe854 (patch) | |
tree | 4b66f1498955e7e623c3b3db8cd39e01308f1722 | |
parent | a440b25f836f46c5379a2cfb9d4912a0d94db8a4 (diff) |
For some reason drawing the SVG logo takes several minutes so don't do it thenprivate/tml/lov-6.1.5.2
For some reason it does not happen in the TDF build of 6.1, but does
happen in the LibreOffice Vanilla build. Whatever. This fixes the
problem.
Change-Id: Ie7a3587ece5de8ca0561ad61811c7511f43cad01
-rw-r--r-- | cui/source/dialogs/about.cxx | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index df8a0b131319..14ad603534a1 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -197,27 +197,8 @@ void AboutDialog::StyleControls() void AboutDialog::SetLogo() { - long nWidth = get_content_area()->get_preferred_size().Width(); - - // fdo#67401 set AntiAliasing for SVG logo - SvtOptionsDrawinglayer aDrawOpt; - bool bOldAntiAliasSetting = aDrawOpt.IsAntiAliasing(); - aDrawOpt.SetAntiAliasing(true); - - // load svg logo, specify desired width, scale height isotropically - if (SfxApplication::loadBrandSvg("flat_logo", aLogoBitmap, nWidth) && - !aLogoBitmap.IsEmpty()) - { - m_pLogoImage->SetImage(Image(aLogoBitmap)); - m_pLogoReplacement->Hide(); - m_pLogoImage->Show(); - } - else - { - m_pLogoImage->Hide(); - m_pLogoReplacement->Show(); - } - aDrawOpt.SetAntiAliasing(bOldAntiAliasSetting); + m_pLogoImage->Hide(); + m_pLogoReplacement->Show(); } void AboutDialog::Resize() |