sw/source/ui/index/cnttab.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit ea21a1d76ee02b29ca9d77cbdb4f5b2b3344ea11 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Dec 18 15:51:55 2018 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Dec 19 22:07:46 2018 +0100
fallback to first entry Change-Id: Ib9fb979584818d1c76be730975c57b549f372dca Reviewed-on: https://gerrit.libreoffice.org/65434 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index cb073ff86353..0a1e338a27c9 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -997,6 +997,8 @@ void SwTOXSelectTabPage::ApplyTOXDescription() if (nIndex != -1) m_xCaptionSequenceLB->set_active(nIndex); m_xDisplayTypeLB->set_active(static_cast<sal_Int32>(rDesc.GetCaptionDisplay())); + if (m_xDisplayTypeLB->get_active() == -1) + m_xDisplayTypeLB->set_active(0); RadioButtonHdl(*m_xFromCaptionsRB); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits