summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-18 15:51:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-19 22:07:46 +0100
commitea21a1d76ee02b29ca9d77cbdb4f5b2b3344ea11 (patch)
tree367fd42a8fbb745842e502b7dd2480b3796a40c0
parent3f2130c5748ad7fc8c0d4dd81d29c650e7a28106 (diff)
fallback to first entry
Change-Id: Ib9fb979584818d1c76be730975c57b549f372dca Reviewed-on: https://gerrit.libreoffice.org/65434 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/ui/index/cnttab.cxx2
1 files changed, 2 insertions, 0 deletions
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);
}