summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-05-21 12:30:45 +0200
committerJan Holesovsky <kendy@collabora.com>2015-05-22 15:08:42 +0200
commitb6b7e34bccb243174b0b0892361589b66a1bf915 (patch)
tree477e59fcbfaa4d099c5b9c88acc428a45a552459 /vcl
parent1026eec23e34fb9a2197af0f6e1235910fb582d4 (diff)
rendercontext: Draw toolbox separators via the rendercontext.
Change-Id: Ie34f9eeb9f706e1a43c31d08869c8b6c610228ec
Diffstat (limited to 'vcl')
-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 452661b921fa..ccffc73ccdce 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -2979,7 +2979,6 @@ void ToolBox::ImplDrawButton(vcl::RenderContext& rRenderContext, const Rectangle
void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, sal_uInt16 nHighlight, bool bPaint, bool bLayout)
{
-
if (nPos >= mpData->m_aItems.size())
return;
@@ -3044,7 +3043,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos,
nPos > 0
)
{
- ImplDrawSeparator(*this, nPos, aButtonRect); // FIXME
+ ImplDrawSeparator(rRenderContext, nPos, aButtonRect);
}
// do nothing if item is no button or will be displayed as window