Kaydet (Commit) e37f024c authored tarafından Tor Lillqvist's avatar Tor Lillqvist

When we have symbolic names why not use them consistently then

Change-Id: Iec2e6dfa5b8bdc30e275862cf9f84e5f32818933
üst c260dda8
...@@ -2750,12 +2750,12 @@ IMPL_LINK( SvxCharPositionPage, FitToLineHdl_Impl, CheckBox*, pBox ) ...@@ -2750,12 +2750,12 @@ IMPL_LINK( SvxCharPositionPage, FitToLineHdl_Impl, CheckBox*, pBox )
IMPL_LINK_NOARG(SvxCharPositionPage, KerningSelectHdl_Impl) IMPL_LINK_NOARG(SvxCharPositionPage, KerningSelectHdl_Impl)
{ {
if ( m_pKerningLB->GetSelectEntryPos() > 0 ) if ( m_pKerningLB->GetSelectEntryPos() > LW_NORMAL )
{ {
m_pKerningFT->Enable(); m_pKerningFT->Enable();
m_pKerningMF->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 // Condensed -> max value == 1/6 of the current font height
SvxFont& rFont = GetPreviewFont(); SvxFont& rFont = GetPreviewFont();
...@@ -2790,7 +2790,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl) ...@@ -2790,7 +2790,7 @@ IMPL_LINK_NOARG(SvxCharPositionPage, KerningModifyHdl_Impl)
long nKern = (short)m_pKerningMF->Denormalize( nVal ); long nKern = (short)m_pKerningMF->Denormalize( nVal );
// Condensed? -> then negative // Condensed? -> then negative
if ( m_pKerningLB->GetSelectEntryPos() == 2 ) if ( m_pKerningLB->GetSelectEntryPos() == LW_SCHMAL )
nKern *= -1; nKern *= -1;
SvxFont& rFont = GetPreviewFont(); SvxFont& rFont = GetPreviewFont();
...@@ -2854,7 +2854,7 @@ void SvxCharPositionPage::ActivatePage( const SfxItemSet& rSet ) ...@@ -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 //the only thing that has to be checked is the max. allowed value for the
//condense edit field //condense edit field
if ( m_pKerningLB->GetSelectEntryPos() == 2 ) if ( m_pKerningLB->GetSelectEntryPos() == LW_SCHMAL )
{ {
// Condensed -> max value == 1/6 of the current font height // Condensed -> max value == 1/6 of the current font height
SvxFont& rFont = GetPreviewFont(); SvxFont& rFont = GetPreviewFont();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment