summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-21 09:09:03 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-21 09:09:03 +0100
commit0024c37c62baa3fb88b51e3b6aba48ec776c603c (patch)
tree075f75f940b898e4f6159fc6c02f34cef3add154 /src
parenta9370ddf1d55ca01307c086950d2294611d9e6a6 (diff)
Fix crash reported on OS X, although the actual cause is not entirely clear.
Diffstat (limited to 'src')
-rw-r--r--src/wx/audio_dialog.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc
index ebe803258..814dc596f 100644
--- a/src/wx/audio_dialog.cc
+++ b/src/wx/audio_dialog.cc
@@ -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.
*/