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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 3 15:52:06 UTC 2019


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

New commits:
commit b94fff58381a58cc737dfb4df9c2ee961e0fe2f6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 2 15:26:53 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
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í <xiscofauli at libreoffice.org>
    Tested-by: Xisco Faulí <xiscofauli at libreoffice.org>
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>
    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 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