sw/source/ui/index/cnttab.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 92f593ce01d9a825d12fcd14b135f0595655ae46
Author: Caolán McNamara <[email protected]>
AuthorDate: Tue Dec 18 15:51:55 2018 +0000
Commit: Caolán McNamara <[email protected]>
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 <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
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);
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits