Fix crash reported on OS X, although the actual cause is not entirely clear.
authorCarl Hetherington <cth@carlh.net>
Mon, 21 Sep 2015 08:09:03 +0000 (09:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Sep 2015 08:09:03 +0000 (09:09 +0100)
src/wx/audio_dialog.cc

index ebe8032581df5af7363f237d0010da1b6aae6722..814dc596f628feee703d1b247a294b33ac757c39 100644 (file)
@@ -217,7 +217,7 @@ AudioDialog::content_changed (int p)
        if (p == AudioContentProperty::AUDIO_STREAMS) {
                try_to_load_analysis ();
        } else if (p == AudioContentProperty::AUDIO_GAIN) {
-               if (_playlist->content().size() == 1) {
+               if (_playlist->content().size() == 1 && _analysis) {
                        /* We can use a short-cut to render the effect of this
                           change, rather than recalculating everything.
                        */