diff options
author | himajin100000 <himajin100000@gmail.com> | 2018-03-22 17:50:03 +0900 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-03-27 16:35:37 +0200 |
commit | 8100a41597637165f364849e6964fdcf8906e5b7 (patch) | |
tree | 13f8dc97805d7941062f53c3d6773fbca00ddf9c /sc/source/core | |
parent | fc88892e9964554d4440637e11a7325c4200fedf (diff) |
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@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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 ) ); } |