diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-06-10 12:52:56 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-06-10 12:52:56 +0400 |
commit | cf5001f99fe7a855155c5b3facc241163ccf1777 (patch) | |
tree | d7b820c453c1cfc03bdbea509d029676d58dc81a | |
parent | 10ff11e70c59d2e9cd9218faedef2b2b507f852f (diff) |
separator will be invisible if there is no visible buttons
Change-Id: Ife88aa5059630b7d71f567a2c8368cec55050eef
-rw-r--r-- | vcl/source/window/toolbox.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index aeb23517df35..c144f3c62316 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; |