[Libreoffice-commits] .: editeng/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Sep 9 07:57:28 PDT 2011


 editeng/source/editeng/eertfpar.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 92c2db2414ecc64836590baa2c7d7342e3b32ce5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Sep 9 15:56:24 2011 +0100

    bah, missing CTL element

diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index b65ffe5..e820c4f 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -326,7 +326,7 @@ void EditRTFParser::SetAttrInDoc( SvxRTFItemStackType &rSet )
     if (eDestUnit != eSrcUnit)
     {
         sal_uInt16 aFntHeightIems[3] = { EE_CHAR_FONTHEIGHT, EE_CHAR_FONTHEIGHT_CJK, EE_CHAR_FONTHEIGHT_CTL };
-        for (int i = 0; i < 2; ++i)
+        for (size_t i = 0; i < SAL_N_ELEMENTS(aFntHeightIems); ++i)
         {
             if (SFX_ITEM_SET == rSet.GetAttrSet().GetItemState( aFntHeightIems[i], sal_False, &pItem ))
             {


More information about the Libreoffice-commits mailing list