[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 3 08:54:12 UTC 2019


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

New commits:
commit 0ece057c0ed75c2de108fc89b6c4e963f8ee3363
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 2 15:26:53 2019 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Wed Apr 3 10:53:48 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/70143
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

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);


More information about the Libreoffice-commits mailing list