]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed incorrect wxCHECK (was a wrong negation before)
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 9 Apr 2002 22:44:38 +0000 (22:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 9 Apr 2002 22:44:38 +0000 (22:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index 049f6e0e1f96b085783e414f7198a570f14b2184..5628353b4b2ed7e391d62c25aaab4b7b51326bcb 100644 (file)
@@ -1621,7 +1621,7 @@ void wxTreeCtrl::DoExpand(const wxTreeItemId& item, int flag)
                   wxT("Unknown flag in wxTreeCtrl::DoExpand") );
 
     // A hidden root can be neither expanded nor collapsed.
-    wxCHECK_RET( (HITEM(item) != TVI_ROOT) || (m_windowStyle & wxTR_HIDE_ROOT),
+    wxCHECK_RET( !(m_windowStyle & wxTR_HIDE_ROOT) || (HITEM(item) != TVI_ROOT),
                  wxT("Can't expand/collapse hidden root node!") )
 
     // TreeView_Expand doesn't send TVN_ITEMEXPAND(ING) messages, so we must