From: Stefan Csomor Date: Sun, 2 Dec 2007 11:20:45 +0000 (+0000) Subject: making sure the clientdc gets destroyed, otherwise we will have stale dc information... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a5388f80f37076c2a5535d3e1ed1e727c8f0f6e0?ds=inline making sure the clientdc gets destroyed, otherwise we will have stale dc information that will interfere with drawing in unpredictable ways git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/databrow.cpp b/src/mac/carbon/databrow.cpp index 5da1756663..cd1d5a7127 100644 --- a/src/mac/carbon/databrow.cpp +++ b/src/mac/carbon/databrow.cpp @@ -618,6 +618,7 @@ void wxMacDataViewDataBrowserListViewControl::DataBrowserDrawItemProc(DataBrowse static_cast(1+rectangle->right-rectangle->left),static_cast(1+rectangle->bottom-rectangle->top)), dataViewCustomRendererPtr->GetDC(),((state == kDataBrowserItemIsSelected) ? wxDATAVIEW_CELL_SELECTED : 0))); dataViewCustomRendererPtr->GetDC()->DestroyClippingRegion(); // probably not necessary + dataViewCustomRendererPtr->SetDC(NULL); } /* wxMacDataViewDataBrowserListViewControl::DataBrowserDrawItemProc(DataBrowserItemID, DataBrowserPropertyID, DataBrowserItemState, Rect const*, SInt16, Boolean) */ OSStatus wxMacDataViewDataBrowserListViewControl::DataBrowserGetSetItemDataProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, DataBrowserItemDataRef itemData, Boolean getValue)