mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-11 09:31:13 +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:
parent
54d33d6d12
commit
5a7b6a7323
@ -11,7 +11,7 @@
|
|||||||
;; "_" (UNDERSCORE) - translation function
|
;; "_" (UNDERSCORE) - translation function
|
||||||
;;
|
;;
|
||||||
;; Third party plug-ins are not translated by gettext in Audacity, but may include a
|
;; 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) ...])
|
;; (LIST (language-list) [(language-list) ...])
|
||||||
;; Each language-list is an a-list in the form:
|
;; Each language-list is an a-list in the form:
|
||||||
;; ("cc" ((list "string" "translated-string") [(list "string" "translated-string") ...]))
|
;; ("cc" ((list "string" "translated-string") [(list "string" "translated-string") ...]))
|
||||||
|
@ -648,7 +648,6 @@ bool NyquistEffect::Process()
|
|||||||
mProps = wxEmptyString;
|
mProps = wxEmptyString;
|
||||||
|
|
||||||
mProps += wxString::Format(wxT("(putprop '*AUDACITY* (list %d %d %d) 'VERSION)\n"), AUDACITY_VERSION, AUDACITY_RELEASE, AUDACITY_REVISION);
|
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(""));
|
wxString lang = gPrefs->Read(wxT("/Locale/Language"), wxT(""));
|
||||||
lang = (lang == wxEmptyString)? wxGetApp().InitLang(lang) : lang;
|
lang = (lang == wxEmptyString)? wxGetApp().InitLang(lang) : lang;
|
||||||
mProps += wxString::Format(wxT("(putprop '*AUDACITY* \"%s\" 'LANGUAGE)\n"), lang);
|
mProps += wxString::Format(wxT("(putprop '*AUDACITY* \"%s\" 'LANGUAGE)\n"), lang);
|
||||||
@ -1352,7 +1351,7 @@ bool NyquistEffect::ProcessOne()
|
|||||||
|
|
||||||
if (rval == nyx_string) {
|
if (rval == nyx_string) {
|
||||||
wxString msg = NyquistToWxString(nyx_get_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);
|
Effect::MessageBox(msg);
|
||||||
|
|
||||||
// True if not process type.
|
// True if not process type.
|
||||||
@ -2889,7 +2888,7 @@ void NyquistEffect::OnFileButton(wxCommandEvent& evt)
|
|||||||
|
|
||||||
// Get style flags:
|
// Get style flags:
|
||||||
// Ensure legal combinations so that wxWidgets does not throw an assert error.
|
// Ensure legal combinations so that wxWidgets does not throw an assert error.
|
||||||
unsigned char flags = 0;
|
unsigned int flags = 0;
|
||||||
if (ctrl.highStr != wxEmptyString)
|
if (ctrl.highStr != wxEmptyString)
|
||||||
{
|
{
|
||||||
wxStringTokenizer tokenizer(ctrl.highStr, ",");
|
wxStringTokenizer tokenizer(ctrl.highStr, ",");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user