sw/source/ui/index/cnttab.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9b325647f4e58c06a195a7d6a4e3946f015519ff Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Apr 2 15:26:53 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Apr 2 18:32:06 2019 +0200 Resolves: tdf#124485 [none] is at index 0 rather than the meaning of nothing-selected which is -1 Change-Id: I3be01fa8d6b57f61aa660be5912f479e79cff2b2 Reviewed-on: https://gerrit.libreoffice.org/70142 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 80060ae955f6..6790e9710be6 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -1113,7 +1113,7 @@ void SwTOXSelectTabPage::FillTOXDescription() case TOX_AUTHORITIES: case TOX_BIBLIOGRAPHY : { - if (m_xBracketLB->get_active() != -1) + if (m_xBracketLB->get_active()) rDesc.SetAuthBrackets(m_xBracketLB->get_active_text()); else rDesc.SetAuthBrackets(OUString()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits