[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Dec 19 15:50:24 UTC 2018
sw/source/ui/index/cnttab.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 92f593ce01d9a825d12fcd14b135f0595655ae46
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Dec 18 15:51:55 2018 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Dec 19 16:49:54 2018 +0100
fallback to first entry
Change-Id: Ib9fb979584818d1c76be730975c57b549f372dca
Reviewed-on: https://gerrit.libreoffice.org/65431
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 17a97d48e5e2..47b5627a20c4 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);
}
More information about the Libreoffice-commits
mailing list