[Libreoffice-commits] core.git: vcl/source
László Németh
laszlo.nemeth at collabora.com
Tue Jun 2 09:12:40 PDT 2015
vcl/source/window/toolbox.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 751d697db61341a481178b86c6b28efa7d3c7d64
Author: László Németh <laszlo.nemeth at collabora.com>
Date: Tue Jun 2 18:08:36 2015 +0200
fix rendercontext rendering of toolbox
Change-Id: I927a7ffdac278384ef102e6619f217daf24879a2
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 18f4f83..34637a2 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 );
More information about the Libreoffice-commits
mailing list