Fix update of reference-dcp-audio button.
[dcpomatic.git] / src / wx / audio_gain_dialog.cc
index b9b2c1fb7267db01f603fac8cb8c6d67ffd58cc8..fddf671485be95cb5433efb6e5c878f1e234fafa 100644 (file)
@@ -23,7 +23,7 @@
 #include "wx_util.h"
 
 AudioGainDialog::AudioGainDialog (wxWindow* parent, int c, int d, float v)
-       : TableDialog (parent, _("Channel gain"), 3, true)
+       : TableDialog (parent, _("Channel gain"), 3, 1, true)
 {
        add (wxString::Format (_("Gain for content channel %d in DCP channel %d"), c + 1, d + 1), false);
        _gain = add (new wxSpinCtrlDouble (this));
@@ -44,6 +44,6 @@ AudioGainDialog::value () const
        if (_gain->GetValue() <= -144) {
                return 0;
        }
-       
+
        return pow (10, _gain->GetValue () / 20);
 }