diff options
author | Steve Yin <steve_y@apache.org> | 2014-06-24 06:43:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-24 10:52:20 +0100 |
commit | 229b8f91228e195fa2613486447c02260c5844e5 (patch) | |
tree | a93e34671ccdc93444cc0fb3cd5fe57089ebafdd /sd | |
parent | f8115ce72dad45b82b044d9c8f5c253d0514574d (diff) |
Resolves: #i125090# The values of upper and lower spacing...
for default paragraph did the complete opposite.
(cherry picked from commit 75f191b09f25e4dd357f42fdf80c2b0252d1c410)
Conflicts:
sd/source/core/stlpool.cxx
Change-Id: Idd44f7f1e4ad6acbde2733240fd357e628ac1f28
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/stlpool.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index da88e23515ec..cb81501feed9 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -274,34 +274,34 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool } sal_uLong nFontSize = 20; - sal_uInt16 nLower = 100; + sal_uInt16 nUpper = 100; switch (nLevel) { case 1: { nFontSize = 32; - nLower = 500; + nUpper = 500; } break; case 2: { nFontSize = 28; - nLower = 400; + nUpper = 400; } break; case 3: { nFontSize = 24; - nLower = 300; + nUpper = 300; } break; case 4: { - nLower = 200; + nUpper = 200; } break; } @@ -313,8 +313,8 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool rOutlineSet.Put( SvxFontHeightItem( nFontSize, 100, EE_CHAR_FONTHEIGHT_CJK ) ); rOutlineSet.Put( SvxFontHeightItem( SdDrawDocument::convertFontHeightToCTL( nFontSize ), 100, EE_CHAR_FONTHEIGHT_CTL ) ); - // Line distance (downwards). Stuff around here cleaned up in i35937 - aSvxULSpaceItem.SetLower(nLower); + // Line distance (upwards). Stuff around here cleaned up in i35937 + aSvxULSpaceItem.SetUpper(nUpper); pSheet->GetItemSet().Put(aSvxULSpaceItem); } } |