summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-08-08 21:35:10 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-08-08 21:56:15 +0400
commitc0308fb3bd0e635a49802c346bc716030846d62c (patch)
tree6ace8686d53a37aa977544faa164b21555b03fa5 /vcl/source/control
parenta3f55e0ad678464a30dde004c97c8b0a680bc8de (diff)
some MenuButtons have weird PUSHBUTTON_DROPDOWN_TOOLBOX style
... actually only SvtFileDialogURLSelector has it. The problem is that in this case ImplGetSeparatorX() returns 0. Change-Id: I2f5bebce31b4f137782b5f34cc7954554af06863
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/menubtn.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx
index 59945221ef86..acc7e9ad4d2b 100644
--- a/vcl/source/control/menubtn.cxx
+++ b/vcl/source/control/menubtn.cxx
@@ -154,7 +154,8 @@ void MenuButton::MouseButtonDown( const MouseEvent& rMEvt )
if ( mnMenuMode & MENUBUTTON_MENUMODE_TIMED )
{
// if the separated dropdown symbol is not hit, delay the popup execution
- if( rMEvt.GetPosPixel().X() <= ImplGetSeparatorX() )
+ if( mnDDStyle != PUSHBUTTON_DROPDOWN_MENUBUTTON || // no separator at all
+ rMEvt.GetPosPixel().X() <= ImplGetSeparatorX() )
{
if ( !mpMenuTimer )
{