summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/toolbox.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index adc31ccef46c..e02e3acac3bc 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3239,11 +3239,12 @@ void ToolBox::ImplDrawSeparator( sal_uInt16 nPos, Rectangle rRect )
bool bNativeOk = false;
ImplToolItem* pItem = &mpData->m_aItems[nPos];
- if( IsNativeControlSupported( CTRL_TOOLBAR, PART_SEPARATOR ) )
+ ControlPart nPart = IsHorizontal() ? PART_SEPARATOR_VERT : PART_SEPARATOR_HORZ;
+ if( IsNativeControlSupported( CTRL_TOOLBAR, nPart ) )
{
ImplControlValue aControlValue;
ControlState nState = 0;
- bNativeOk = DrawNativeControl( CTRL_TOOLBAR, PART_SEPARATOR,
+ bNativeOk = DrawNativeControl( CTRL_TOOLBAR, nPart,
rRect, nState, aControlValue, rtl::OUString() );
}