From: Stefan Csomor Date: Sun, 13 Jan 2008 11:16:44 +0000 (+0000) Subject: I still think that's needed ... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/17a1e846154f10487319e083dda016bef4c55934 I still think that's needed ... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/databrow.cpp b/src/mac/carbon/databrow.cpp index 8bd705589d..f475dc0474 100644 --- a/src/mac/carbon/databrow.cpp +++ b/src/mac/carbon/databrow.cpp @@ -1029,6 +1029,8 @@ 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 + // avoid stale information about the DC carried over + dataViewCustomRendererPtr->SetDC( NULL ); } /* wxMacDataViewDataBrowserListViewControl::DataBrowserDrawItemProc(DataBrowserItemID, DataBrowserPropertyID, DataBrowserItemState, Rect const*, SInt16, Boolean) */ Boolean wxMacDataViewDataBrowserListViewControl::DataBrowserEditItemProc(DataBrowserItemID itemID, DataBrowserPropertyID propertyID, CFStringRef theString, Rect* maxEditTextRect, Boolean* shrinkToFit)