X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e640f8231fbf0417f9ab5d378e7f218587cb6ac2..546bfbea8180aeee5a16f4abb34e721445277305:/samples/widgets/combobox.cpp diff --git a/samples/widgets/combobox.cpp b/samples/widgets/combobox.cpp index b4a4ecc961..e79c7e7d89 100644 --- a/samples/widgets/combobox.cpp +++ b/samples/widgets/combobox.cpp @@ -457,7 +457,7 @@ void ComboboxWidgetsPage::OnUpdateUIDeleteButton(wxUpdateUIEvent& event) { unsigned long n; event.Enable(m_textDelete->GetValue().ToULong(&n) && - (n < (unsigned)m_combobox->GetCount())); + (n < (unsigned)m_combobox->GetCount())); } } @@ -482,8 +482,8 @@ void ComboboxWidgetsPage::OnUpdateUIAddSeveral(wxUpdateUIEvent& event) void ComboboxWidgetsPage::OnComboText(wxCommandEvent& event) { if (!m_combobox) - return; - + return; + wxString s = event.GetString(); wxASSERT_MSG( s == m_combobox->GetValue(),