diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-20 16:38:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-20 16:38:04 +0100 |
| commit | a9fad9e29d9a9d6d006a77ec5c1c0572704dfeb7 (patch) | |
| tree | 73e2e2d850354228e365ac12ab503108a5f00f00 /src | |
| parent | f071268af155c9443fadba8d4368f960b82704ab (diff) | |
Layout audio panel sizer after changing mapping; should fix #183.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_panel.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index cfe34bba5..b686b6154 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -29,6 +29,7 @@ #include "film_editor.h" using std::vector; +using std::cout; using std::string; using boost::dynamic_pointer_cast; using boost::lexical_cast; @@ -101,6 +102,7 @@ AudioPanel::film_changed (Film::Property property) switch (property) { case Film::DCP_AUDIO_CHANNELS: _mapping->set_channels (_editor->film()->dcp_audio_channels ()); + _sizer->Layout (); break; default: break; @@ -123,6 +125,7 @@ AudioPanel::film_content_changed (shared_ptr<Content> c, int property) checked_set (_delay, ac ? ac->audio_delay() : 0); } else if (property == AudioContentProperty::AUDIO_MAPPING) { _mapping->set (ac ? ac->audio_mapping () : AudioMapping ()); + _sizer->Layout (); } else if (property == FFmpegContentProperty::AUDIO_STREAMS) { _stream->Clear (); if (fc) { |
