sw/source/ui/config/optload.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 48c47db6e7e79f0accb3221a34ec03202e8fa413 Author: Julien Nabet <serval2...@yahoo.fr> Date: Wed Jan 17 15:58:10 2018 +0100 tdf#115032: Above as default position for Autocaption pref Change-Id: Idcd4e4a409476fe269340ac9d8f3ceacc6fbd7f3 Reviewed-on: https://gerrit.libreoffice.org/48058 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.he...@gmail.com> Tested-by: Heiko Tietze <tietze.he...@gmail.com> 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 ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits