From 607ddbe19370bc5d67c061e5749d7e9d99b420d5 Mon Sep 17 00:00:00 2001 From: "v.audacity" Date: Wed, 26 Jun 2013 03:40:54 +0000 Subject: [PATCH] Improve the Dry Preview button horizontal spacing after Preview button. --- src/ShuttleGui.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/ShuttleGui.cpp b/src/ShuttleGui.cpp index d4e064972..f062a7e16 100644 --- a/src/ShuttleGui.cpp +++ b/src/ShuttleGui.cpp @@ -2175,19 +2175,16 @@ wxSizer *CreateStdButtonSizer(wxWindow *parent, long buttons, wxButton *extra) bs->AddButton( new wxButton( parent, wxID_HELP ) ); } - if( (buttons & ePreviewButton) && (buttons & ePreviewDryButton) ) + if (buttons & ePreviewButton) + { + bs->Add( new wxButton( parent, ePreviewID, _("Pre&view") ), 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, margin ); + bs->Add( 5, 0 ); + } + if (buttons & ePreviewDryButton) { - bs->Add(new wxButton( parent, ePreviewID, _("Pre&view") ) ); - bs->Add(8, 0); bs->Add(new wxButton( parent, ePreviewDryID, _("Dry Previe&w") ) ); bs->Add( 20, 0 ); } - else if( buttons & ePreviewButton ) - { - b = new wxButton( parent, ePreviewID, _("Pre&view") ); - bs->Add( b, 0, wxALIGN_CENTER | wxLEFT | wxRIGHT, margin ); - bs->Add( 40, 0 ); - } if( buttons & eDefaultsButton ) {