projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f071268
)
Layout audio panel sizer after changing mapping; should fix #183.
author
Carl Hetherington
<cth@carlh.net>
Sat, 20 Jul 2013 15:38:04 +0000
(16:38 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sat, 20 Jul 2013 15:38:04 +0000
(16:38 +0100)
src/wx/audio_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_panel.cc
b/src/wx/audio_panel.cc
index cfe34bba5ca8886553857304ecf138e37bb0172e..b686b6154634ec919b6d4b93904875aa9d958ff6 100644
(file)
--- a/
src/wx/audio_panel.cc
+++ b/
src/wx/audio_panel.cc
@@
-29,6
+29,7
@@
#include "film_editor.h"
using std::vector;
#include "film_editor.h"
using std::vector;
+using std::cout;
using std::string;
using boost::dynamic_pointer_cast;
using boost::lexical_cast;
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 ());
switch (property) {
case Film::DCP_AUDIO_CHANNELS:
_mapping->set_channels (_editor->film()->dcp_audio_channels ());
+ _sizer->Layout ();
break;
default:
break;
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 ());
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) {
} else if (property == FFmpegContentProperty::AUDIO_STREAMS) {
_stream->Clear ();
if (fc) {