Only activate the aspect ratio inputs if the current track is not being appended to another one.

This commit is contained in:
Moritz Bunkus 2005-09-18 12:23:42 +00:00
parent ceeced6ffc
commit c3c252b32c
2 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,9 @@
2005-09-18 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: If a video track was selected that was appended to
another track then the aspect ratio drop down box was still
active.
* mkvmerge: new feature: MPEG-4 part 2 streams are searched for
the pixel width/height values. Those are taken if they differ from
those values in the source container. This is a work-around for

View File

@ -675,11 +675,11 @@ tab_input::enable_ar_controls(mmg_track_t *track) {
bool ar_enabled;
ar_enabled = !track->display_dimensions_selected;
cob_aspect_ratio->Enable(ar_enabled);
tc_display_width->Enable(!ar_enabled);
tc_display_height->Enable(!ar_enabled);
rb_aspect_ratio->SetValue(ar_enabled);
rb_display_dimensions->SetValue(!ar_enabled);
cob_aspect_ratio->Enable(ar_enabled && !track->appending);
tc_display_width->Enable(!ar_enabled && !track->appending);
tc_display_height->Enable(!ar_enabled && !track->appending);
rb_aspect_ratio->SetValue(ar_enabled && !track->appending);
rb_display_dimensions->SetValue(!ar_enabled && !track->appending);
}
void