Kaydet (Commit) f4410925 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

CWS-TOOLING: integrate CWS dtardon01

...@@ -3386,11 +3386,6 @@ USHORT* SvxCharPositionPage::GetRanges() ...@@ -3386,11 +3386,6 @@ USHORT* SvxCharPositionPage::GetRanges()
} }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
#define ENABLE_AND_CHECK( aCheckBox ) \
if ( !aCheckBox.IsEnabled() ) \
aCheckBox.Enable(); \
aCheckBox.Check( TRUE )
void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
{ {
String sUser = GetUserData(); String sUser = GetUserData();
...@@ -3431,6 +3426,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) ...@@ -3431,6 +3426,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
m_aFontSizeEdit.Enable(); m_aFontSizeEdit.Enable();
short nFac; short nFac;
sal_Bool bAutomatic(sal_False);
if ( nEsc > 0 ) if ( nEsc > 0 )
{ {
...@@ -3438,8 +3434,8 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) ...@@ -3438,8 +3434,8 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
m_aHighPosBtn.Check( TRUE ); m_aHighPosBtn.Check( TRUE );
if ( nEsc == DFLT_ESC_AUTO_SUPER ) if ( nEsc == DFLT_ESC_AUTO_SUPER )
{ {
ENABLE_AND_CHECK( m_aHighLowRB );
nEsc = DFLT_ESC_SUPER; nEsc = DFLT_ESC_SUPER;
bAutomatic = sal_True;
} }
} }
else else
...@@ -3448,10 +3444,15 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) ...@@ -3448,10 +3444,15 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet )
m_aLowPosBtn.Check( TRUE ); m_aLowPosBtn.Check( TRUE );
if ( nEsc == DFLT_ESC_AUTO_SUB ) if ( nEsc == DFLT_ESC_AUTO_SUB )
{ {
ENABLE_AND_CHECK( m_aHighLowRB );
nEsc = DFLT_ESC_SUB; nEsc = DFLT_ESC_SUB;
bAutomatic = sal_True;
}
} }
if (!m_aHighLowRB.IsEnabled())
{
m_aHighLowRB.Enable();
} }
m_aHighLowRB.Check(bAutomatic);
if ( m_aHighLowRB.IsChecked() ) if ( m_aHighLowRB.IsChecked() )
{ {
......
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