[Libreoffice-commits] core.git: vcl/source
Julien Nabet
serval2412 at yahoo.fr
Mon Jun 3 13:56:08 PDT 2013
vcl/source/gdi/outdev3.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 2791ce4ee56120d7814dcb3b7c6d6925b9cd9abc
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Jun 3 22:55:18 2013 +0200
Variable only used once
Change-Id: I01c6681da8a0ac83eaafdf86a04a187f13a05792
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 565a56c..081104c 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -442,8 +442,6 @@ Font OutputDevice::GetDefaultFont( sal_uInt16 nType, LanguageType eLang,
if( aDefault.Len() )
aSearch = aDefault;
- int nDefaultHeight = 12;
-
Font aFont;
aFont.SetPitch( PITCH_VARIABLE );
@@ -497,7 +495,7 @@ Font OutputDevice::GetDefaultFont( sal_uInt16 nType, LanguageType eLang,
if ( aSearch.Len() )
{
- aFont.SetHeight( nDefaultHeight );
+ aFont.SetHeight( 12 ); // corresponds to nDefaultHeight
aFont.SetWeight( WEIGHT_NORMAL );
aFont.SetLanguage( eLang );
More information about the Libreoffice-commits
mailing list