diff options
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 13e77ef69eff..211afd36f3b7 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -938,7 +938,7 @@ sal_uInt16 ToolBox::GetItemId( const Point& rPos ) const Size ToolBox::GetItemContentSize( sal_uInt16 nItemId ) const { if ( mbCalc || mbFormat ) - ((ToolBox*)this)->ImplFormat(); + (const_cast<ToolBox*>(this))->ImplFormat(); sal_uInt16 nPos = GetItemPos( nItemId ); if ( nPos < mpData->m_aItems.size() ) |