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 ) {