summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/config/optload.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index 7803dde3094f..d8f7f929e5ba 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -776,9 +776,11 @@ IMPL_LINK_NOARG(SwCaptionOptPage, ShowEntryHdl, SvTreeListBox*, void)
m_pPosBox->InsertEntry(m_sEnd);
break;
}
- m_pPosBox->SelectEntryPos(pOpt->GetPos());
m_pPosBox->Enable( m_pPosBox->IsEnabled() );
- m_pPosBox->SelectEntryPos(pOpt->GetPos());
+ if (m_pPosBox->IsEnabled())
+ m_pPosBox->SelectEntryPos(pOpt->GetPos());
+ else
+ m_pPosBox->SelectEntryPos(0);
sal_Int32 nLevelPos = ( pOpt->GetLevel() < MAXLEVEL ) ? pOpt->GetLevel() + 1 : 0;
m_pLbLevel->SelectEntryPos( nLevelPos );