diff options
author | Andras Timar <andras.timar@collabora.com> | 2013-11-08 22:24:25 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-08 22:31:30 +0100 |
commit | f6449bf0bb93874f189aab9765c1de43dca69807 (patch) | |
tree | 041f589a1f78a952034751bbb6899e9e6590956a | |
parent | 63ce8673cff538a49165259e0579f122b5879444 (diff) |
fdo#67401 set AntiAliasing for SVG logo
Change-Id: I90aae11aca84c9c5445f58bdf76d65f0213a334c
-rw-r--r-- | cui/source/dialogs/about.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index 4243180652dc..1591f4e72c7c 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() |