diff options
author | Peter Burow <pb@openoffice.org> | 2001-05-22 09:09:08 +0000 |
---|---|---|
committer | Peter Burow <pb@openoffice.org> | 2001-05-22 09:09:08 +0000 |
commit | a1f57d5b1bc09291aa3dc5ef81fcf5e068eba250 (patch) | |
tree | 56bae6e45c37cb781fb042d921b85a69211dd9a0 /svx | |
parent | 5d2ee78216509cb19c83afa751a8dc9f0508cac5 (diff) |
fix: #87002# PositionPage: enable automatic checkbox if necessary
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/chardlg.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/svx/source/dialog/chardlg.cxx b/svx/source/dialog/chardlg.cxx index 7c173c792f59..7f5e4eb7b347 100644 --- a/svx/source/dialog/chardlg.cxx +++ b/svx/source/dialog/chardlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: chardlg.cxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.41 $ * - * last change: $Author: pb $ $Date: 2001-05-22 09:13:22 $ + * last change: $Author: pb $ $Date: 2001-05-22 10:09:08 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -5169,6 +5169,10 @@ USHORT* SvxCharPositionPage::GetRanges() } // ----------------------------------------------------------------------- +#define ENABLE_AND_CHECK( aCheckBox ) \ + if ( !aCheckBox.IsEnabled() ) \ + aCheckBox.Enable(); \ + aCheckBox.Check( TRUE ) void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) { @@ -5215,7 +5219,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) m_aHighPosBtn.Check( TRUE ); if ( nEsc == DFLT_ESC_AUTO_SUPER ) { - m_aHighLowRB.Check( TRUE ); + ENABLE_AND_CHECK( m_aHighLowRB ); nEsc = DFLT_ESC_SUPER; } } @@ -5225,7 +5229,7 @@ void SvxCharPositionPage::Reset( const SfxItemSet& rSet ) m_aLowPosBtn.Check( TRUE ); if ( nEsc == DFLT_ESC_AUTO_SUB ) { - m_aHighLowRB.Check(TRUE); + ENABLE_AND_CHECK( m_aHighLowRB ); nEsc = DFLT_ESC_SUB; } } |