summaryrefslogtreecommitdiff
path: root/src/wx/audio_plot.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-29 20:02:56 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-29 20:02:56 +0000
commitbfe277e664a03ec47cd6bee7e1b1e4aca6eb38e6 (patch)
tree6bdc6fa07f2cde0565c4025ab552f2c0fc9c3b2f /src/wx/audio_plot.cc
parent6a0da4eb43fc684c0f54a7a3a817a31dc8db7109 (diff)
parent27867be66579551018c926ed3339624e463c1b08 (diff)
Merge branch '2.0' of git.carlh.net:git/dcpomatic into 2.0
Diffstat (limited to 'src/wx/audio_plot.cc')
-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 641ddd503..16930ffd8 100644
--- a/src/wx/audio_plot.cc
+++ b/src/wx/audio_plot.cc
@@ -280,7 +280,7 @@ AudioPlot::plot_rms (wxGraphicsPath& path, int channel, Metrics const & metrics)
p += pow (*j, 2);
}
- if (smoothing.size() > 0) {
+ if (!smoothing.empty ()) {
p = sqrt (p / smoothing.size ());
}