1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-15 17:43:53 +01:00

Fix return of reference to temporary object (that's bad!) ...

... This might be the reason for Linux crashes when playing-at-speed.

This was a bad thing to do with any compiler -- not to be blamed on
possible compiler bugs.

There was a warning about this in the XCode build.
This commit is contained in:
Paul Licameli
2018-10-03 14:24:20 -04:00
parent 348e7868b8
commit cc74b0273f

View File

@@ -1105,7 +1105,8 @@ const wxString &Scrubber::GetUntranslatedStateString() const
static wxString empty;
if (IsSpeedPlaying()) {
return XO("Playing at Speed");
static wxString result = XO("Playing at Speed");
return result;
}
else if (HasMark()) {
auto &item = FindMenuItem(Seeks() || TemporarilySeeks());