diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-01-23 10:38:49 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-01-23 10:38:49 +0200 |
commit | e37f024ce08f894e4bc926737d368806b3aea739 (patch) | |
tree | 5c4120c9b1f211b4e927b00cb03b1814a45edbf5 /cui | |
parent | c260dda82a05f5496634eab1deefd5e9f22c4b02 (diff) |
When we have symbolic names why not use them consistently then
Change-Id: Iec2e6dfa5b8bdc30e275862cf9f84e5f32818933
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 9c35affa4f1f..7e0614f555f6 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -2750,12 +2750,12 @@ IMPL_LINK( SvxCharPositionPage, FitToLineHdl_Impl, CheckBox*, pBox ) IMPL_LINK_NOARG(SvxCharPositionPage, KerningSelectHdl_Impl) { - if ( m_pKerningLB->GetSelectEntryPos() > 0 ) + if ( m_pKerningLB->GetSelectEntryPos() > LW_NORMAL ) { m_pKerningFT->Enable(); m_pKerningMF->Enable(); - if ( m_pKerningLB->GetSelectEntryPos() == 2 ) + if ( m_pKerningLB->GetSelectEntryPos() == LW_SCHMAL ) { // Condensed -> max value == 1/6 of the current font height SvxFont& rFont = GetPreviewFont(); @@ -2790,7 +2790,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl) long nKern = (short)m_pKerningMF->Denormalize( nVal ); // Condensed? -> then negative - if ( m_pKerningLB->GetSelectEntryPos() == 2 ) + if ( m_pKerningLB->GetSelectEntryPos() == LW_SCHMAL ) nKern *= -1; SvxFont& rFont = GetPreviewFont(); @@ -2854,7 +2854,7 @@ void SvxCharPositionPage::ActivatePage( const SfxItemSet& rSet ) //the only thing that has to be checked is the max. allowed value for the //condense edit field - if ( m_pKerningLB->GetSelectEntryPos() == 2 ) + if ( m_pKerningLB->GetSelectEntryPos() == LW_SCHMAL ) { // Condensed -> max value == 1/6 of the current font height SvxFont& rFont = GetPreviewFont(); |