Correct wxDataViewCtrl::IsExpanded

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2009-06-15 19:30:09 +00:00
parent 8f4745feeb
commit 850e47aa3c

View File

@ -995,11 +995,12 @@ wxRect wxMacDataViewDataBrowserListViewControl::GetRectangle(wxDataViewItem cons
bool wxMacDataViewDataBrowserListViewControl::IsExpanded(wxDataViewItem const& item) const
{
DataBrowserItemState state;
DataBrowserItemState state = 0;
if (this->GetItemState(reinterpret_cast<DataBrowserItemID>(item.GetID()),&state) != noErr)
return false;
return ((this->GetItemState(reinterpret_cast<DataBrowserItemID>(item.GetID()),&state) == noErr) &&
(state & kDataBrowserContainerIsOpen != 0));
return ((state & kDataBrowserContainerIsOpen) != 0);
}
bool wxMacDataViewDataBrowserListViewControl::Reload(void)