summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTsutomu Uchino <hanya@apache.org>2014-01-13 08:23:02 +0000
committerTsutomu Uchino <hanya@apache.org>2014-01-13 08:23:02 +0000
commit0635f5cb82f0bb0717b8e74cded79a6fbb0f064c (patch)
tree0ce920a2d14224392a30dc5570b39f8d6d34ba68 /sc
parent8cae5708c761ba10a87f3616a669df03e6ba0039 (diff)
#i91494# use the same font height for CJK text with Western in drawing object on Calc drawing layer
Notes
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/drwlayer.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 3f4e2d5012e5..838a8a195669 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -274,10 +274,16 @@ ScDrawLayer::ScDrawLayer( ScDocument* pDocument, const String& rName ) :
// #95129# SJ: set FontHeight pool defaults without changing static SdrEngineDefaults
SfxItemPool* pOutlinerPool = rOutliner.GetEditTextObjectPool();
if ( pOutlinerPool )
+ {
pItemPool->SetPoolDefaultItem(SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT )); // 12Pt
+ pItemPool->SetPoolDefaultItem(SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT_CJK )); // 12Pt
+ }
SfxItemPool* pHitOutlinerPool = rHitOutliner.GetEditTextObjectPool();
if ( pHitOutlinerPool )
+ {
pHitOutlinerPool->SetPoolDefaultItem(SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT )); // 12Pt
+ pHitOutlinerPool->SetPoolDefaultItem(SvxFontHeightItem( 423, 100, EE_CHAR_FONTHEIGHT_CJK )); // 12Pt
+ }
// initial undo mode as in Calc document
if( pDoc )