The initial value was simply ignored, do use it now if it's specified, i.e.
non empty.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63877
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- // Set the first item as being selected
- if (n > 0)
+ // Set up the initial value, by default the first item is selected.
+ if ( !value.empty() )
+ SetValue(value);
+ else if (n > 0)
SetSelection( 0 );
// Needed because it is a wxControlWithItems
SetSelection( 0 );
// Needed because it is a wxControlWithItems