git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61064
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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)