1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-29 23:29:41 +02:00

Fix multiple selection Nyquist file widget

Wx "Style" flags are 4 bytes, not 1 byte.
Also update a couple of comments in passing.
This commit is contained in:
Steve Daulton 2018-12-27 19:44:05 +00:00
parent 54d33d6d12
commit 5a7b6a7323
2 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,7 @@
;; "_" (UNDERSCORE) - translation function
;;
;; Third party plug-ins are not translated by gettext in Audacity, but may include a
;; list of translations named *local*. The format of *locale* must be:
;; list of translations named *locale*. The format of *locale* must be:
;; (LIST (language-list) [(language-list) ...])
;; Each language-list is an a-list in the form:
;; ("cc" ((list "string" "translated-string") [(list "string" "translated-string") ...]))

View File

@ -648,7 +648,6 @@ bool NyquistEffect::Process()
mProps = wxEmptyString;
mProps += wxString::Format(wxT("(putprop '*AUDACITY* (list %d %d %d) 'VERSION)\n"), AUDACITY_VERSION, AUDACITY_RELEASE, AUDACITY_REVISION);
// TODO: Document.
wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
lang = (lang == wxEmptyString)? wxGetApp().InitLang(lang) : lang;
mProps += wxString::Format(wxT("(putprop '*AUDACITY* \"%s\" 'LANGUAGE)\n"), lang);
@ -1352,7 +1351,7 @@ bool NyquistEffect::ProcessOne()
if (rval == nyx_string) {
wxString msg = NyquistToWxString(nyx_get_string());
if (!msg.IsEmpty()) // Not currently a documented feature, but could be useful as a No-Op.
if (!msg.IsEmpty()) // Empty string may be used as a No-Op return value.
Effect::MessageBox(msg);
// True if not process type.
@ -2889,7 +2888,7 @@ void NyquistEffect::OnFileButton(wxCommandEvent& evt)
// Get style flags:
// Ensure legal combinations so that wxWidgets does not throw an assert error.
unsigned char flags = 0;
unsigned int flags = 0;
if (ctrl.highStr != wxEmptyString)
{
wxStringTokenizer tokenizer(ctrl.highStr, ",");