Layout audio panel sizer after changing mapping; should fix #183.
authorCarl Hetherington <cth@carlh.net>
Sat, 20 Jul 2013 15:38:04 +0000 (16:38 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 20 Jul 2013 15:38:04 +0000 (16:38 +0100)
src/wx/audio_panel.cc

index cfe34bba5ca8886553857304ecf138e37bb0172e..b686b6154634ec919b6d4b93904875aa9d958ff6 100644 (file)
@@ -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) {