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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user