1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-16 08:34:10 +02:00

Fix Nyquist message logging

Incorrect use of wxLogMessage can cause crash on Windows
if '%' present in debug string.
This commit is contained in:
Steve Daulton 2017-07-07 14:11:53 +01:00
parent f0702fb54b
commit 3aab1939f0

View File

@ -1171,7 +1171,7 @@ bool NyquistEffect::ProcessOne()
// If we're not showing debug window, log errors and warnings: // If we're not showing debug window, log errors and warnings:
if (!mDebugOutput.IsEmpty() && !mDebug && !mTrace) { if (!mDebugOutput.IsEmpty() && !mDebug && !mTrace) {
/* i18n-hint: An effect "returned" a message.*/ /* i18n-hint: An effect "returned" a message.*/
wxLogMessage(wxT("\'") + mName + wxT("\' ") + _("returned:") + wxT("\n") + mDebugOutput); wxLogMessage(_("\'%s\' returned:\n%s"), mName, mDebugOutput);
} }
// Audacity has no idea how long Nyquist processing will take, but // Audacity has no idea how long Nyquist processing will take, but