[Libreoffice-commits] core.git: sfx2/source

Eike Rathke erack at redhat.com
Thu May 3 22:14:45 UTC 2018


 sfx2/source/dialog/filtergrouping.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ccbc955ed0d2efec2de5250a8b838804fafa93ce
Author: Eike Rathke <erack at redhat.com>
Date:   Fri May 4 00:13:41 2018 +0200

    Reverse debug logic
    
    Two warning messages are too much..
    
    Change-Id: Ifaa40e1c7a32b488d1a40374507efea5e893280f

diff --git a/sfx2/source/dialog/filtergrouping.cxx b/sfx2/source/dialog/filtergrouping.cxx
index fc8104801207..b00da7900b62 100644
--- a/sfx2/source/dialog/filtergrouping.cxx
+++ b/sfx2/source/dialog/filtergrouping.cxx
@@ -464,7 +464,7 @@ namespace sfx2
     {
         DBG_ASSERT( !_rWildCard.isEmpty(),
             "AppendWildcardToDescriptor::AppendWildcardToDescriptor: invalid wildcard!" );
-        DBG_ASSERT( !_rWildCard.isEmpty() && _rWildCard[0] != s_cWildcardSeparator,
+        DBG_ASSERT( _rWildCard.isEmpty() || _rWildCard[0] != s_cWildcardSeparator,
             "AppendWildcardToDescriptor::AppendWildcardToDescriptor: wildcard already separated!" );
 
         aWildCards.reserve( comphelper::string::getTokenCount(_rWildCard, s_cWildcardSeparator) );


More information about the Libreoffice-commits mailing list