From c43fa10c741187eef239935557cd8e0567c1de32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Mon, 9 Nov 2015 13:11:03 +0200 Subject: [PATCH] Fix drop down combobox flags in the widgets sample Combine, not replace, combobox option flags when creating a drop down one, otherwise all the others flags were simply ignored. Closes https://github.com/wxWidgets/wxWidgets/pull/136 --- samples/widgets/combobox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/widgets/combobox.cpp b/samples/widgets/combobox.cpp index d3e19731fc..ab9947173b 100644 --- a/samples/widgets/combobox.cpp +++ b/samples/widgets/combobox.cpp @@ -431,7 +431,7 @@ void ComboboxWidgetsPage::CreateCombo() break; case ComboKind_DropDown: - flags = wxCB_DROPDOWN; + flags |= wxCB_DROPDOWN; break; }