summaryrefslogtreecommitdiff
path: root/vcl/source/window/toolbox2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r--vcl/source/window/toolbox2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx
index a9dd9142f47a..fd338243ee22 100644
--- a/vcl/source/window/toolbox2.cxx
+++ b/vcl/source/window/toolbox2.cxx
@@ -1049,10 +1049,10 @@ void ToolBox::SetItemText( ToolBoxItemId nItemId, const OUString& rText )
if ( !mbCalc &&
((meButtonType != ButtonType::SYMBOLONLY) || !pItem->maImage) )
{
- tools::Long nOldWidth = GetCtrlTextWidth( pItem->maText );
+ tools::Long nOldWidth = GetOutDev()->GetCtrlTextWidth( pItem->maText );
pItem->maText = MnemonicGenerator::EraseAllMnemonicChars(rText);
mpData->ImplClearLayoutData();
- if ( nOldWidth != GetCtrlTextWidth( pItem->maText ) )
+ if ( nOldWidth != GetOutDev()->GetCtrlTextWidth( pItem->maText ) )
ImplInvalidate( true );
else
ImplUpdateItem( nPos );
@@ -1135,7 +1135,7 @@ void ToolBox::SetItemDown( ToolBoxItemId nItemId, bool bDown )
{
mnCurPos = nPos;
InvalidateItem(mnCurPos);
- Flush();
+ GetOutDev()->Flush();
}
}
else
@@ -1143,7 +1143,7 @@ void ToolBox::SetItemDown( ToolBoxItemId nItemId, bool bDown )
if ( nPos == mnCurPos )
{
InvalidateItem(mnCurPos);
- Flush();
+ GetOutDev()->Flush();
mnCurPos = ITEM_NOTFOUND;
}
}