]> git.saurik.com Git - wxWidgets.git/commitdiff
Small optical fix.
authorRobert Roebling <robert@roebling.de>
Mon, 10 Dec 2001 11:55:16 +0000 (11:55 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 10 Dec 2001 11:55:16 +0000 (11:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index edfa1116395a79129b1d5cdcd22331bcf60be5b0..0ebc9aa60b94c012a08a4d1f749e7b87a9733714 100644 (file)
@@ -670,6 +670,7 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
     wxGetOsVersion( &major, &minor );
     
     if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
     wxGetOsVersion( &major, &minor );
     
     if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
+    if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS;
     style &= ~wxTR_LINES_AT_ROOT;
     style |= wxTR_NO_LINES;
     if (major < 10)
     style &= ~wxTR_LINES_AT_ROOT;
     style |= wxTR_NO_LINES;
     if (major < 10)