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

Stephan Bergmann sbergman at redhat.com
Tue May 5 23:20:49 PDT 2015


 sc/source/filter/starcalc/scflt.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f593be5bcde09965bb3478e00bcdedbc6bd5bc57
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed May 6 08:17:32 2015 +0200

    SfxBoolItem takes a sal_uInt16 nWhich as first argument
    
    This code was like that ever since 9ae5a91f7955e44d3b24a3f7741f9bca02ac7f24
    "initial import."  From the surrounding code, the best bet appears to be
    ATTR_LINEBREAK?
    
    Change-Id: Id0e3346f2f9bb9c00c202003d06c2518dea38112

diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx
index 682eb20..b21f9a4 100644
--- a/sc/source/filter/starcalc/scflt.cxx
+++ b/sc/source/filter/starcalc/scflt.cxx
@@ -1189,7 +1189,7 @@ void Sc10Import::LoadPatternCollection()
                     }
 
                 if( ( OJustify & ojWordBreak ) == ojWordBreak )
-                    rItemSet.Put( SfxBoolItem( sal_True ) );
+                    rItemSet.Put( SfxBoolItem( ATTR_LINEBREAK, true ) );
                 if( ( OJustify & ojBottomTop ) == ojBottomTop )
                     rItemSet.Put( SfxInt32Item( ATTR_ROTATE_VALUE, 9000 ) );
                 else if( ( OJustify & ojTopBottom ) == ojTopBottom )
@@ -1830,7 +1830,7 @@ void Sc10Import::LoadColAttr(SCCOL Col, SCTAB Tab)
             }
 
             if (OJustify & ojWordBreak)
-                aScPattern.GetItemSet().Put(SfxBoolItem(sal_True));
+                aScPattern.GetItemSet().Put(SfxBoolItem(ATTR_LINEBREAK, true));
             if (OJustify & ojBottomTop)
                 aScPattern.GetItemSet().Put(SfxInt32Item(ATTR_ROTATE_VALUE,9000));
             else if (OJustify & ojTopBottom)


More information about the Libreoffice-commits mailing list