Misc small changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -227,7 +227,7 @@ FortyFrame::About(wxCommandEvent&)
|
||||
"Forty Thieves\n\n"
|
||||
"A freeware program using the wxWindows\n"
|
||||
"portable C++ GUI toolkit.\n"
|
||||
"http://web.ukonline.co.uk/julian.smart/wxwin\n"
|
||||
"http://www.wxwindows.org\n"
|
||||
"http://www.freiburg.linux.de/~wxxt\n\n"
|
||||
"Author: Chris Breeze (c) 1992-1998\n"
|
||||
"email: chris.breeze@iname.com",
|
||||
|
@@ -116,7 +116,7 @@ PlayerSelectionDialog::PlayerSelectionDialog(
|
||||
list->SetConstraints(layout);
|
||||
|
||||
wxString prevPlayer = m_scoreFile->GetPreviousPlayer();
|
||||
if (prevPlayer.Length() > 0)
|
||||
if ((prevPlayer.Length() > 0) && (list->FindString(prevPlayer) != -1))
|
||||
{
|
||||
list->SetStringSelection(prevPlayer);
|
||||
m_textField->SetValue(prevPlayer);
|
||||
|
@@ -285,6 +285,7 @@ LifeFrame::LifeFrame() : wxFrame((wxFrame *)0, -1, _("Life!"), wxPoint(200, 200)
|
||||
|
||||
sizer2->Add( m_text, 0, wxGROW | wxTOP, 4 );
|
||||
sizer2->Add( slider, 0, wxCENTRE | wxALL, 4 );
|
||||
|
||||
panel2->SetSizer( sizer2 );
|
||||
panel2->SetAutoLayout( TRUE );
|
||||
sizer2->Fit( panel2 );
|
||||
|
Reference in New Issue
Block a user