From 3704157a17f01389134c5f34e8103c941d2e760a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 17 May 2004 18:52:03 +0000 Subject: [PATCH] Use GetStringSelection() instead of GetValue(). This will return the correct value on all OS. --- ChangeLog | 5 +++++ src/mmg/tab_chapters.cpp | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index fe5b7ff29..8eed8ce8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Moritz Bunkus + + * mmg: bug fix: The chapter editor did not honor the values + selected for 'country' and 'language'. + 2004-05-15 Moritz Bunkus * mkvmerge: bug fix: Audio sync for Vorbis was partially broken diff --git a/src/mmg/tab_chapters.cpp b/src/mmg/tab_chapters.cpp index 7df7ada6a..c518289a9 100644 --- a/src/mmg/tab_chapters.cpp +++ b/src/mmg/tab_chapters.cpp @@ -1089,7 +1089,7 @@ tab_chapters::on_language_code_selected(wxCommandEvent &evt) { clanguage = &GetChild(*cdisplay); *static_cast(clanguage) = - wxMB(extract_language_code(cob_language_code->GetValue())); + wxMB(extract_language_code(cob_language_code->GetStringSelection())); label = create_chapter_label(*t->chapter); tc_chapters->SetItemText(id, label); @@ -1123,7 +1123,7 @@ tab_chapters::on_country_code_selected(wxCommandEvent &evt) { if (cdisplay == NULL) return; - if (cob_country_code->GetValue().Length() == 0) { + if (cob_country_code->GetStringSelection().Length() == 0) { i = 0; while (i < cdisplay->ListSize()) { if (EbmlId(*(*cdisplay)[i]) == KaxChapterCountry::ClassInfos.GlobalId) { @@ -1136,7 +1136,7 @@ tab_chapters::on_country_code_selected(wxCommandEvent &evt) { } ccountry = &GetChild(*cdisplay); *static_cast(ccountry) = - wxMB(cob_country_code->GetValue()); + wxMB(cob_country_code->GetStringSelection()); } void