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:54:46 +0400
commit32901f70b131939df733e725ecee02e3432d4e89 (patch)
tree2291eee0646a640a59283060c9ab9005e448cf31
parent243fefb72897f45448d946d571397b7bc4893e7d (diff)
separator will be invisible if there is no visible buttons
Change-Id: Ife88aa5059630b7d71f567a2c8368cec55050eef (cherry picked from commit cf5001f99fe7a855155c5b3facc241163ccf1777)
-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 370eb0d4cf69..c672c7aebead 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2353,8 +2353,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;