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

himajin100000 himajin100000 at gmail.com
Tue Mar 27 14:36:06 UTC 2018


 sc/source/core/data/dpoutput.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 8100a41597637165f364849e6964fdcf8906e5b7
Author: himajin100000 <himajin100000 at gmail.com>
Date:   Thu Mar 22 17:50:03 2018 +0900

    tdf#116470:Apply BOLD to CJK/CTL pivot table style
    
    by changing ATTR_CJK_FONT_WEIGHT and ATTR_CTL_FONT_WEIGHT
    (carelessly forgotten in Change 51511)
    
    Change-Id: Idd7fce6b20f8e1f5b8d70bdc74ba06833cd0a1d9
    Reviewed-on: https://gerrit.libreoffice.org/51727
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index 34e06009f5bf..5c584944e20f 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -300,8 +300,11 @@ void lcl_SetStyleById(ScDocument* pDoc, SCTAB nTab,
                                                     SFXSTYLEBIT_USERDEF ) );
         pStyle->SetParent( ScGlobal::GetRscString(STR_STYLENAME_STANDARD) );
         SfxItemSet& rSet = pStyle->GetItemSet();
-        if (strcmp(pStrId, STR_PIVOT_STYLENAME_RESULT) == 0 || strcmp(pStrId, STR_PIVOT_STYLENAME_TITLE) == 0)
+        if (strcmp(pStrId, STR_PIVOT_STYLENAME_RESULT) == 0 || strcmp(pStrId, STR_PIVOT_STYLENAME_TITLE) == 0){
             rSet.Put( SvxWeightItem( WEIGHT_BOLD, ATTR_FONT_WEIGHT ) );
+            rSet.Put( SvxWeightItem( WEIGHT_BOLD, ATTR_CJK_FONT_WEIGHT ) );
+            rSet.Put( SvxWeightItem( WEIGHT_BOLD, ATTR_CTL_FONT_WEIGHT ) );
+        }
         if (strcmp(pStrId, STR_PIVOT_STYLENAME_CATEGORY) == 0 || strcmp(pStrId, STR_PIVOT_STYLENAME_TITLE) == 0)
             rSet.Put( SvxHorJustifyItem( SvxCellHorJustify::Left, ATTR_HOR_JUSTIFY ) );
     }


More information about the Libreoffice-commits mailing list