[Libreoffice-commits] .: sw/source

Andras Timar timar at kemper.freedesktop.org
Tue Jan 11 04:12:54 PST 2011


 sw/source/core/txtnode/fntcap.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit e99f7ac3788d0c93fc8b3b4d86bf60198bb3713d
Author: Andras Timar <timar at fsf.hu>
Date:   Tue Jan 11 13:06:37 2011 +0100

    s/KAPITAELCHENPROP/SMALL_CAPS_PERCENT/ and define it in a header

diff --git a/sw/source/core/txtnode/fntcap.cxx b/sw/source/core/txtnode/fntcap.cxx
index af8f8b5..5de551c 100644
--- a/sw/source/core/txtnode/fntcap.cxx
+++ b/sw/source/core/txtnode/fntcap.cxx
@@ -32,6 +32,7 @@
 
 #include <hintids.hxx>
 #include <editeng/cmapitem.hxx>
+#include <editeng/svxfont.hxx>
 
 #include <vcl/outdev.hxx>
 #include <com/sun/star/i18n/CharType.hdl>
@@ -47,9 +48,6 @@
 
 using namespace ::com::sun::star::i18n;
 
-
-#define KAPITAELCHENPROP 80
-
 /*************************************************************************
  *						class SwCapitalInfo
  *
@@ -626,7 +624,7 @@ void SwSubFont::DoOnCapitals( SwDoCapitals &rDo )
         pBigFont = pLastFont;
 
     // Hier entsteht der Kleinbuchstabenfont:
-    aFont.SetProportion( BYTE( (aFont.GetPropr()*KAPITAELCHENPROP) / 100L) );
+    aFont.SetProportion( BYTE( (aFont.GetPropr() * SMALL_CAPS_PERCENTAGE ) / 100L) );
     pMagic2 = NULL;
     nIndex2 = 0;
     SwFntAccess *pSmallFontAccess = new SwFntAccess( pMagic2, nIndex2, &aFont,


More information about the Libreoffice-commits mailing list