[Libreoffice-commits] core.git: cui/source

Andras Timar andras.timar at collabora.com
Fri Nov 8 22:31:51 CET 2013


 cui/source/dialogs/about.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit f6449bf0bb93874f189aab9765c1de43dca69807
Author: Andras Timar <andras.timar at collabora.com>
Date:   Fri Nov 8 22:24:25 2013 +0100

    fdo#67401 set AntiAliasing for SVG logo
    
    Change-Id: I90aae11aca84c9c5445f58bdf76d65f0213a334c

diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 4243180..1591f4e 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -38,6 +38,7 @@
 #include "cppuhelper/bootstrap.hxx"
 #include <basegfx/numeric/ftools.hxx>
 #include <com/sun/star/geometry/RealRectangle2D.hpp>
+#include <svtools/optionsdrawinglayer.hxx>
 
 #include <sfx2/sfxuno.hxx>
 #include <sfx2/sfxcommands.h>
@@ -171,6 +172,11 @@ void AboutDialog::SetLogo()
 {
     long nWidth = get_content_area()->get_preferred_size().Width();
 
+    // fdo#67401 set AntiAliasing for SVG logo
+    SvtOptionsDrawinglayer aDrawOpt;
+    sal_Bool bOldAntiAliasSetting = aDrawOpt.IsAntiAliasing();
+    aDrawOpt.SetAntiAliasing(sal_True);
+
     // load svg logo, specify desired width, scale height isotrophically
     if( SfxApplication::loadBrandSvg("flat_logo", aLogoBitmap, nWidth) &&
         !aLogoBitmap.IsEmpty() )
@@ -184,6 +190,7 @@ void AboutDialog::SetLogo()
         m_pLogoImage->Hide();
         m_pLogoReplacement->Show();
     }
+    aDrawOpt.SetAntiAliasing(bOldAntiAliasSetting);
 }
 
 void AboutDialog::Resize()


More information about the Libreoffice-commits mailing list