[Libreoffice-commits] .: vcl/aqua
Pierre-André Jacquod
pjacquod at kemper.freedesktop.org
Fri Oct 7 11:42:21 PDT 2011
vcl/aqua/source/gdi/salatsuifontutils.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 78b1cc1a08d712212152a1e57400c8b07654e471
Author: Pierre-André Jacquod <pjacquod at alumni.ethz.ch>
Date: Fri Oct 7 20:40:01 2011 +0200
Revert "cppcheck scope reduction in vcl/..salatsuifontutils.cxx"
This reverts commit e45b962f49829d5c60c913383b2132b579af3fab.
this is the most probale cause of the breakage on MacOSX tinderbox.
Do not really understand why it should break, but I do not see other
potential guilty commits... No MacOSX at hand... so revert and see
diff --git a/vcl/aqua/source/gdi/salatsuifontutils.cxx b/vcl/aqua/source/gdi/salatsuifontutils.cxx
index d9d2c8e..e124b3c 100644
--- a/vcl/aqua/source/gdi/salatsuifontutils.cxx
+++ b/vcl/aqua/source/gdi/salatsuifontutils.cxx
@@ -237,6 +237,7 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
return false;
int nBestNameValue = 0;
int nBestStyleValue = 0;
+ FontLanguageCode eBestLangCode = 0;
const FontLanguageCode eUILangCode = Application::GetSettings().GetUILanguage();
typedef std::vector<char> NameBuffer;
NameBuffer aNameBuffer( 256 );
@@ -332,7 +333,7 @@ static bool GetDevFontAttributes( ATSUFontID nFontID, ImplDevFontAttributes& rDF
{
// get the best family name
nBestNameValue = nNameValue;
- FontLanguageCode eBestLangCode = eFontNameLanguage;
+ eBestLangCode = eFontNameLanguage;
rDFA.maName = aUtf16Name;
}
break;
More information about the Libreoffice-commits
mailing list