diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-12 15:59:26 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 08:37:59 +0900 |
commit | 9130c6111b79ff67d26089ce75300d818e2999e5 (patch) | |
tree | 666db7ccad68f48c2166ee88fe18c7705fef16a0 /svx | |
parent | eee24f6c5deec1a1dff30597567f6ae121d880fc (diff) |
refactor GraphCtrl to use RenderContext
Change-Id: Id0a3d24e7c6d6910b62f2950dcb7bd5cb67f59ad
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/graphctl.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index 1587a70f5914..5d690ed8827b 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -242,19 +242,19 @@ void GraphCtrl::Resize() Invalidate(); } -void GraphCtrl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) +void GraphCtrl::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect) { // #i72889# used splitted repaint to be able to paint an own background // even to the buffered view const bool bGraphicValid(GRAPHIC_NONE != aGraphic.GetType()); - if(bSdrMode) + if (bSdrMode) { - SdrPaintWindow* pPaintWindow = pView->BeginCompleteRedraw(this); + SdrPaintWindow* pPaintWindow = pView->BeginCompleteRedraw(&rRenderContext); - if(bGraphicValid) + if (bGraphicValid) { - OutputDevice& rTarget = pPaintWindow->GetTargetOutputDevice(); + vcl::RenderContext& rTarget = pPaintWindow->GetTargetOutputDevice(); rTarget.SetBackground(GetBackground()); rTarget.Erase(); @@ -271,7 +271,7 @@ void GraphCtrl::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& // #i73381# in non-SdrMode, paint to local directly if(bGraphicValid) { - aGraphic.Draw(this, Point(), aGraphSize); + aGraphic.Draw(&rRenderContext, Point(), aGraphSize); } } } |