[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/source

Caolán McNamara caolanm at redhat.com
Thu Feb 18 14:01:14 UTC 2016


 vcl/source/control/edit.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e919bfcaa5561445ebf39f73171bf1c934818d1a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 18 13:52:55 2016 +0000

    fix inverted logic regression
    
    regression from...
    
        commit 051b29e1025253f35f87a04e297760aa8b40611f
        Author: Luboš Luňák <l.lunak at collabora.com>
        Date:   Sun Sep 14 15:45:02 2014 +0200
    
            convert Edit autocomplete Hdl to boost signals2
    
        where the conversion was...
    
        - if ( maAutocompleteHdl.IsSet() )
        + if ( autocompleteSignal.empty() )
    
        instead of the correct
    
        + if ( !autocompleteSignal.empty() )
    
    Change-Id: Ie87944d66958af595e64b41236bbf515ef7a1f98
    Reviewed-on: https://gerrit.libreoffice.org/22477
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index d0e4eb1..e6dc5b8 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -2125,7 +2125,7 @@ void Edit::Command( const CommandEvent& rCEvt )
         Invalidate();
 
         // #i25161# call auto complete handler for ext text commit also
-        if (m_pImpl->m_AutocompleteSignal.empty())
+        if (!m_pImpl->m_AutocompleteSignal.empty())
         {
             if ( (maSelection.Min() == maSelection.Max()) && (maSelection.Min() == maText.getLength()) )
             {


More information about the Libreoffice-commits mailing list