Compilation fix for wxCarbon after the last commit.
Apply corrected version of the patch for Carbon. See #13661. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f0e867e97c
commit
1f92048725
@ -713,7 +713,7 @@ void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
|
|||||||
if (GetModel() == NULL)
|
if (GetModel() == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(m_peer));
|
wxMacDataViewDataBrowserListViewControlPointer MacDataViewListCtrlPtr(dynamic_cast<wxMacDataViewDataBrowserListViewControlPointer>(GetPeer()));
|
||||||
|
|
||||||
int NoOfChildren;
|
int NoOfChildren;
|
||||||
wxDataViewItemArray items;
|
wxDataViewItemArray items;
|
||||||
@ -738,7 +738,7 @@ void wxDataViewCtrl::OnMouse(wxMouseEvent& event)
|
|||||||
|
|
||||||
Rect itemrect;
|
Rect itemrect;
|
||||||
::GetDataBrowserItemPartBounds( MacDataViewListCtrlPtr->GetControlRef(),
|
::GetDataBrowserItemPartBounds( MacDataViewListCtrlPtr->GetControlRef(),
|
||||||
reinterpret_cast<DataBrowserItemID>(firstChild.GetID()), column->GetPropertyID(),
|
reinterpret_cast<DataBrowserItemID>(firstChild.GetID()), column->GetNativeData()->GetPropertyID(),
|
||||||
kDataBrowserPropertyEnclosingPart, &itemrect );
|
kDataBrowserPropertyEnclosingPart, &itemrect );
|
||||||
|
|
||||||
if (abs( event.GetX() - itemrect.right) < 3)
|
if (abs( event.GetX() - itemrect.right) < 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user