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

Zolnai Tamás tamas.zolnai at collabora.com
Fri Jan 3 10:57:44 PST 2014


 sw/source/filter/ww8/wrtw8sty.cxx |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

New commits:
commit 24282a3bd62416bbcca5847ff35ef0c22ad6dac4
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Fri Jan 3 19:55:17 2014 +0100

    Fiy typos: nInitalsLen -> nInitialsLen
    
    Change-Id: If3d4ee2d860d89378276aa9be212a59ec958c9e2

diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index 0ed970c..9d8fbe8 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -2508,30 +2508,30 @@ void WW8_WrPlcSubDoc::WriteGenericPlc( WW8Export& rWrt, sal_uInt8 nTTyp,
                         "Impossible");
                 sal_uInt16 nFndPos = static_cast< sal_uInt16 >(aIter - aStrArr.begin());
                 OUString sInitials( aIter->second );
-                sal_uInt8 nInitalsLen = (sal_uInt8)sInitials.getLength();
-                if ( nInitalsLen > 9 )
+                sal_uInt8 nInitialsLen = (sal_uInt8)sInitials.getLength();
+                if ( nInitialsLen > 9 )
                 {
                     sInitials = sInitials.copy( 0, 9 );
-                    nInitalsLen = 9;
+                    nInitialsLen = 9;
                 }
 
                 // xstUsrInitl[ 10 ] pascal-style String holding initials
                 // of annotation author
                 if ( rWrt.bWrtWW8 )
                 {
-                    SwWW8Writer::WriteShort(*rWrt.pTableStrm, nInitalsLen);
+                    SwWW8Writer::WriteShort(*rWrt.pTableStrm, nInitialsLen);
                     SwWW8Writer::WriteString16(*rWrt.pTableStrm, sInitials,
                             false);
                     SwWW8Writer::FillCount( *rWrt.pTableStrm,
-                            (9 - nInitalsLen) * 2 );
+                            (9 - nInitialsLen) * 2 );
 
                 }
                 else
                 {
-                    *rWrt.pTableStrm << nInitalsLen;
+                    *rWrt.pTableStrm << nInitialsLen;
                     SwWW8Writer::WriteString8(*rWrt.pTableStrm, sInitials,
                             false, RTL_TEXTENCODING_MS_1252);
-                    SwWW8Writer::FillCount(*rWrt.pTableStrm, 9 - nInitalsLen);
+                    SwWW8Writer::FillCount(*rWrt.pTableStrm, 9 - nInitialsLen);
                 }
 
                 // documents layout of WriteShort's below:


More information about the Libreoffice-commits mailing list