The language combo boxes in the chapter editor contain not only the language code but also the full name. So extract the language code from the full string before comparing it.

This commit is contained in:
Moritz Bunkus 2005-11-19 15:06:42 +00:00
parent 04b9c742e4
commit 11c401edbd
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-19 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: Fixed a problem with the selection of language
codes for chapters in the chapter editor.
2005-11-18 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: If at least or more attachments were present

View File

@ -1983,7 +1983,7 @@ tab_chapters::set_display_values(KaxChapterDisplay *display) {
count = cob_language_code->GetCount();
found = false;
for (i = 0; i < count; i++)
if (cob_language_code->GetString(i) == language) {
if (extract_language_code(cob_language_code->GetString(i)) == language) {
found = true;
break;
}