summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-02-25 22:23:59 +0000
committerCarl Hetherington <cth@carlh.net>2013-02-25 22:23:59 +0000
commit67ecc371385beeed9cf5e245bf44d1487d4234c6 (patch)
treedcccf29efa00ab13a09b414d9a5ecbffff49dd6c /src
parent7705c4569818a8b798eb471bf9298873622a1e59 (diff)
Fix crash on zero-channelled analysis.
Diffstat (limited to 'src')
-rw-r--r--src/wx/audio_plot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc
index fb5b92ff3..693e11a61 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -101,7 +101,7 @@ AudioPlot::paint (wxPaintEvent &)
return;
}
- if (!_analysis) {
+ if (!_analysis || _analysis->channels() == 0) {
gc->SetFont (gc->CreateFont (*wxNORMAL_FONT));
gc->DrawText (_("Please wait; audio is being analysed..."), 32, 32);
return;