diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-06-19 17:52:26 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-06-19 17:59:07 +0200 |
commit | 7f19a7f1f15159321964d6a8873c66c8b68f3df9 (patch) | |
tree | cb121000ee1d8be5b4541e34ec553188d7e5522a /svx/source/stbctrls/modctrl.cxx | |
parent | b7faad20cebe2b92e51fa2279f9c49d9fbd5a2d3 (diff) |
rendercontext: Fix crash with double-buffering in the Styles combo box.
Decouple the actual window from rendercontext in UserDrawEvent.
Change-Id: Ic440c4e7f59fcffb7800c578146e8eb528cbb7b4
Diffstat (limited to 'svx/source/stbctrls/modctrl.cxx')
-rw-r--r-- | svx/source/stbctrls/modctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/stbctrls/modctrl.cxx b/svx/source/stbctrls/modctrl.cxx index 5374f369c5f7..d22b3a550e1a 100644 --- a/svx/source/stbctrls/modctrl.cxx +++ b/svx/source/stbctrls/modctrl.cxx @@ -150,8 +150,8 @@ Point centerImage(const Rectangle& rBoundingRect, const Image& rImg) void SvxModifyControl::Paint( const UserDrawEvent& rUsrEvt ) { - OutputDevice* pDev = rUsrEvt.GetDevice(); - Rectangle aRect = rUsrEvt.GetRect(); + vcl::RenderContext* pDev = rUsrEvt.GetRenderContext(); + Rectangle aRect(rUsrEvt.GetRect()); ImplData::ModificationState state = mxImpl->mnModState; Point aPt = centerImage(aRect, mxImpl->maImages[state]); |