]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed HasButtons()
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Aug 2003 23:03:01 +0000 (23:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 6 Aug 2003 23:03:01 +0000 (23:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/treectlg.h

index c386e70fe8707df73c78beb705d1b9ea12fbe343..e257190faf656fac52d70823ba943dde5fb4bf8c 100644 (file)
@@ -443,8 +443,7 @@ protected:
     // find the first item starting with the given prefix after the given item
     wxTreeItemId FindItem(const wxTreeItemId& id, const wxString& prefix) const;
 
-    bool HasButtons() const
-        { return HasFlag(wxTR_HAS_BUTTONS) && (m_imageListButtons != NULL); }
+    bool HasButtons() const { return HasFlag(wxTR_HAS_BUTTONS); }
 
     void CalculateLineHeight();
     int  GetLineHeight(wxGenericTreeItem *item) const;