projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7705c45
)
Fix crash on zero-channelled analysis.
author
Carl Hetherington
<cth@carlh.net>
Mon, 25 Feb 2013 22:23:59 +0000
(22:23 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 25 Feb 2013 22:23:59 +0000
(22:23 +0000)
src/wx/audio_plot.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_plot.cc
b/src/wx/audio_plot.cc
index fb5b92ff30ac36ac695d4448132e270940b88377..693e11a61f408761bb1edc05170dab4c36a00798 100644
(file)
--- 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;