]> git.saurik.com Git - wxWidgets.git/commitdiff
don't draw buttons unless we have wxTR_HAS_BUTTONS style
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 23:04:37 +0000 (23:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Aug 2003 23:04:37 +0000 (23:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/treectlg.h

index 1d1a77865b8bbf2ab12149e6aefc571794120fe4..c386e70fe8707df73c78beb705d1b9ea12fbe343 100644 (file)
@@ -443,9 +443,8 @@ 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(void) const
-        { return (m_imageListButtons != NULL)
-              || HasFlag(wxTR_TWIST_BUTTONS|wxTR_HAS_BUTTONS); }
+    bool HasButtons() const
+        { return HasFlag(wxTR_HAS_BUTTONS) && (m_imageListButtons != NULL); }
 
     void CalculateLineHeight();
     int  GetLineHeight(wxGenericTreeItem *item) const;