diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-25 16:29:20 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-25 16:31:23 +0900 |
commit | 0359a59b6dec4a3c1e8fdc6e51d179fd6db4aad7 (patch) | |
tree | 0724089c9fc8011930202bccee8a25d8ca2aea21 /vcl | |
parent | dd0996f7b230e76f35cc3464b85dd46e90098c3d (diff) |
forward RenderCOntext to UserDraw, remove obsolete draw call
Change-Id: I29dcc22a6840e7104bdf68d050b616c8e06226fa
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/status.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx index a3273ece1047..b9669d731a87 100644 --- a/vcl/source/window/status.cxx +++ b/vcl/source/window/status.cxx @@ -462,7 +462,7 @@ void StatusBar::ImplDrawItem(vcl::RenderContext& rRenderContext, bool bOffScreen } else { - UserDrawEvent aODEvt(this, aTextRect, pItem->mnId); + UserDrawEvent aODEvt(&rRenderContext, aTextRect, pItem->mnId); UserDraw(aODEvt); } } @@ -505,8 +505,7 @@ void StatusBar::ImplDrawItem(vcl::RenderContext& rRenderContext, bool bOffScreen } } - const OutputDevice* pOutDev = GetOutDev(); - if (!pOutDev->ImplIsRecordLayout()) + if (!rRenderContext.ImplIsRecordLayout()) CallEventListeners(VCLEVENT_STATUSBAR_DRAWITEM, reinterpret_cast<void*>(pItem->mnId)); } @@ -1260,7 +1259,6 @@ void StatusBar::SetItemData( sal_uInt16 nItemId, void* pNewData ) Update(); Rectangle aRect = ImplGetItemRectPos(nPos); Invalidate(aRect); - ImplDrawItem(*this, true, nPos, false, false); Flush(); } } |