diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-06-02 18:08:36 +0200 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-06-02 18:12:03 +0200 |
commit | 751d697db61341a481178b86c6b28efa7d3c7d64 (patch) | |
tree | 4cad8435f8dc57d29add89b6b789b6f693f08505 /vcl | |
parent | c3a71742e5092b012921ad80d3375b231a75f8c2 (diff) |
fix rendercontext rendering of toolbox
Change-Id: I927a7ffdac278384ef102e6619f217daf24879a2
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 18f4f833aa39..34637a251c1b 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -3095,7 +3095,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, mpData->m_pLayoutData->m_aLineItemIds.push_back( pItem->mnId ); mpData->m_pLayoutData->m_aLineItemPositions.push_back( nPos ); } - DrawCtrlText( aPos, pItem->maText, 0, pItem->maText.getLength(), DrawTextFlags::Mnemonic, pVector, pDisplayText ); + rRenderContext.DrawCtrlText( aPos, pItem->maText, 0, pItem->maText.getLength(), DrawTextFlags::Mnemonic, pVector, pDisplayText ); if (bClip) rRenderContext.SetClipRegion(); rRenderContext.SetFont(aOldFont); @@ -3258,7 +3258,7 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, mpData->m_pLayoutData->m_aLineItemIds.push_back( pItem->mnId ); mpData->m_pLayoutData->m_aLineItemPositions.push_back( nPos ); } - DrawCtrlText( Point( nTextOffX, nTextOffY ), pItem->maText, + rRenderContext.DrawCtrlText( Point( nTextOffX, nTextOffY ), pItem->maText, 0, pItem->maText.getLength(), nTextStyle, pVector, pDisplayText ); if ( bRotate ) SetFont( aOldFont ); |