From fabf8d1e8ac2ddfa568e06cc1a4477dab41366c4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Oct 2019 13:53:34 +0200 Subject: [PATCH] Revert "Never show tree lines when there are tree buttons under OS X and GTK+" This reverts commit ec2f175241f71963d64d8ab2c8d674c86df4ad25 because it doesn't seem useful to forcefully turn off the connecting lines when wxTR_HAS_BUTTONS is specified: they will still be off by default in wxGTK and wxMac because wxTR_NO_LINES is part of wxTR_DEFAULT_STYLE, but will be shown now (as they used to be back in 2.6 days) if a style excluding wxTR_NO_LINES is explicitly specified. Closes #11522. --- src/generic/treectlg.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index a0eaecd81b..0109bf016d 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -988,16 +988,6 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent, const wxValidator& validator, const wxString& name ) { -#ifdef __WXMAC__ - if (style & wxTR_HAS_BUTTONS) - style |= wxTR_NO_LINES; -#endif // __WXMAC__ - -#ifdef __WXGTK20__ - if (style & wxTR_HAS_BUTTONS) - style |= wxTR_NO_LINES; -#endif - if ( !wxControl::Create( parent, id, pos, size, style|wxHSCROLL|wxVSCROLL|wxWANTS_CHARS, validator,