[Libreoffice-commits] .: vcl/source

Ivan Timofeev ivantimofeev at kemper.freedesktop.org
Sun Jun 10 01:53:44 PDT 2012


 vcl/source/window/toolbox.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit cf5001f99fe7a855155c5b3facc241163ccf1777
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Sun Jun 10 12:52:56 2012 +0400

    separator will be invisible if there is no visible buttons
    
    Change-Id: Ife88aa5059630b7d71f567a2c8368cec55050eef

diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index aeb2351..c144f3c 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2351,8 +2351,7 @@ static void lcl_hideDoubleSeparators( std::vector< ImplToolItem >& rItems )
                 std::vector< ImplToolItem >::iterator temp_it;
                 for ( temp_it = it+1; temp_it != rItems.end(); ++temp_it )
                 {
-                    if ( (temp_it->meType == TOOLBOXITEM_SEPARATOR) ||
-                         ((temp_it->meType == TOOLBOXITEM_BUTTON) &&
+                    if ( ((temp_it->meType == TOOLBOXITEM_BUTTON) &&
                           temp_it->mbVisible) )
                     {
                         it->mbVisible = sal_True;


More information about the Libreoffice-commits mailing list