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

Julien Nabet serval2412 at yahoo.fr
Sat Mar 22 07:33:04 PDT 2014


 sc/source/core/tool/autoform.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f593bfc1b8d2bdc5ed8b1e2c5f714f4eb71beda5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 22 15:32:21 2014 +0100

    Fix the condition
    
    (thank you Kohei!)
    
    Change-Id: I45f94a2e09d24afeec545f4cf84acd209092ab7d

diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 31d1c56..4f1f8e7 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -663,7 +663,7 @@ void ScAutoFormatData::FillToItemSet( sal_uInt16 nIndex, SfxItemSet& rItemSet, S
         }
         // do not insert empty CTL font
         const SvxFontItem& rCTLFont = rField.GetCTLFont();
-        if (rCTLFont.GetStyleName().isEmpty())
+        if (!rCTLFont.GetStyleName().isEmpty())
         {
             rItemSet.Put( rCTLFont );
             rItemSet.Put( rField.GetCTLHeight() );


More information about the Libreoffice-commits mailing list