From 11c401edbd5f356780f9968765a8db98c6c2b973 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 19 Nov 2005 15:06:42 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ src/mmg/tab_chapters.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 234adae50..fb871bfd3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-19 Moritz Bunkus + + * mmg: bug fix: Fixed a problem with the selection of language + codes for chapters in the chapter editor. + 2005-11-18 Moritz Bunkus * mkvmerge: bug fix: If at least or more attachments were present diff --git a/src/mmg/tab_chapters.cpp b/src/mmg/tab_chapters.cpp index 6ea8ecd37..02df65f8c 100644 --- a/src/mmg/tab_chapters.cpp +++ b/src/mmg/tab_chapters.cpp @@ -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; }