sw/source/ui/index/cnttab.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b94fff58381a58cc737dfb4df9c2ee961e0fe2f6
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Apr 2 15:26:53 2019 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Apr 3 17:51:39 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/70144
    Reviewed-by: Xisco Faulí <[email protected]>
    Tested-by: Xisco Faulí <[email protected]>
    Reviewed-by: Adolfo Jayme Barrientos <[email protected]>
    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 0a1e338a27c9..cf634cadd1a7 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -1115,7 +1115,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(aEmptyOUStr);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to