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

Caolán McNamara caolanm at redhat.com
Thu Nov 21 06:25:16 PST 2013


 sw/source/core/txtnode/fntcache.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 59b605a6141b04d475af8d5b5c08b0c8056c73d1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Nov 21 14:24:46 2013 +0000

    longparas: nTxtBreak is really a xub_StrLen
    
    Change-Id: If8c3b366bfdf1e626823aca0d7026e877e21c63b

diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index 0f882dc..781023f 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -2357,7 +2357,7 @@ xub_StrLen SwFont::GetTxtBreak( SwDrawTextInfo& rInf, long nTextWidth )
     OSL_ENSURE( !bCompress || ( rInf.GetScriptInfo() && rInf.GetScriptInfo()->
             CountCompChg()), "Compression without info" );
 
-    sal_uInt16 nTxtBreak = 0;
+    xub_StrLen nTxtBreak = 0;
     long nKern = 0;
 
     sal_uInt16 nLn = ( rInf.GetLen() == STRING_LEN ? rInf.GetText().getLength()


More information about the Libreoffice-commits mailing list