From 78ccfa399f3d71512daafb4da67d1e3e75f8430f Mon Sep 17 00:00:00 2001 From: BusinessmanProgrammerSteve Date: Sat, 12 Jun 2010 20:39:23 +0000 Subject: [PATCH] Nick Trimble's patch fixing bug 124 (no OK button in Audio Device Info); also causes OK button to display correctly in another, similar dialog after Export Multiple. --- src/widgets/ErrorDialog.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/ErrorDialog.cpp b/src/widgets/ErrorDialog.cpp index b96ac9b50..14d1dfbc1 100644 --- a/src/widgets/ErrorDialog.cpp +++ b/src/widgets/ErrorDialog.cpp @@ -272,15 +272,16 @@ void ShowInfoDialog( wxWindow *parent, S.AddTextWindow(message); } S.SetBorder( 0 ); - S.StartHorizontalLay(wxALIGN_RIGHT|wxALIGN_BOTTOM, 0); + S.StartHorizontalLay(wxALIGN_CENTER|wxALIGN_BOTTOM, 0); S.AddStandardButtons(eOkButton); + S.EndHorizontalLay(); + // Next three lines add a tiny dragger. wxStatusBar * pBar = new wxStatusBar( &dlog ); pBar->SetSize( 18, 38); S.AddWindow( pBar, wxALIGN_BOTTOM|wxALIGN_RIGHT ); - S.EndHorizontalLay(); S.EndVerticalLay(); // Smallest size is half default size. Seems reasonable.