diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-25 22:23:59 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-25 22:23:59 +0000 |
| commit | 67ecc371385beeed9cf5e245bf44d1487d4234c6 (patch) | |
| tree | dcccf29efa00ab13a09b414d9a5ecbffff49dd6c /src | |
| parent | 7705c4569818a8b798eb471bf9298873622a1e59 (diff) | |
Fix crash on zero-channelled analysis.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_plot.cc | 2 |
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; |
