Changed the tooltip for the "stretch" input box. Only append "/1" to the "stretch" argument if the user hasn't entered a fraction himself.

This commit is contained in:
Moritz Bunkus 2005-01-20 11:18:41 +00:00
parent 32f151a58e
commit 923308ff45
3 changed files with 14 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2005-01-20 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: The "stretch" input box tooltip was wrong. The
resulting command line was broken, too.
2005-01-08 Moritz Bunkus <moritz@bunkus.org>
* mmg: new feature: Made the mkvmerge GUI guide available by

View File

@ -1283,8 +1283,11 @@ mmg_dialog::update_command_line() {
arg += t->delay;
else
arg += wxT("0");
if (t->stretch.Length() > 0)
arg += wxT(",") + t->stretch + wxT("/1");
if (t->stretch.Length() > 0) {
arg += wxT(",") + t->stretch;
if (t->stretch.Find(wxT("/")) < 0)
arg += wxT("/1");
}
clargs.Add(wxT("--sync"));
clargs.Add(arg);
}

View File

@ -248,9 +248,10 @@ tab_input::tab_input(wxWindow *parent):
siz_fg->Add(st_stretch, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 10);
tc_stretch = new wxTextCtrl(this, ID_TC_STRETCH, wxT(""));
tc_stretch->SetToolTip(TIP("Stretch the audio or subtitle track by a "
"factor. This should be a positive floating "
"point number. Not all formats can be stretched "
"at the moment."));
"factor. This entry can have two formats. It is "
"either a positive floating point number, or a "
"fraction like e.g. 1200/1253. Not all formats "
"can be stretched at the moment."));
tc_stretch->SetSizeHints(0, -1);
siz_fg->Add(tc_stretch, 0, wxGROW, 0);