compilation fix for old broken Borland compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -230,11 +230,13 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
|||||||
|
|
||||||
case CBN_EDITCHANGE:
|
case CBN_EDITCHANGE:
|
||||||
{
|
{
|
||||||
|
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, GetId());
|
||||||
// if sel != -1, value was initialized above (and we can't use
|
// if sel != -1, value was initialized above (and we can't use
|
||||||
// GetValue() here as it would return the old selection and we
|
// GetValue() here as it would return the old selection and we
|
||||||
// want the new one)
|
// want the new one)
|
||||||
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, GetId());
|
if ( sel == -1 )
|
||||||
event.SetString(sel == -1 ? GetValue() : value);
|
value = GetValue();
|
||||||
|
event.SetString(value);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
ProcessCommand(event);
|
ProcessCommand(event);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user