summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-06-10 12:52:56 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-06-10 12:52:56 +0400
commitcf5001f99fe7a855155c5b3facc241163ccf1777 (patch)
treed7b820c453c1cfc03bdbea509d029676d58dc81a
parent10ff11e70c59d2e9cd9218faedef2b2b507f852f (diff)
separator will be invisible if there is no visible buttons
Change-Id: Ife88aa5059630b7d71f567a2c8368cec55050eef
-rw-r--r--vcl/source/window/toolbox.cxx3
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;