Use GetStringSelection() instead of GetValue(). This will return the correct value on all OS.

This commit is contained in:
Moritz Bunkus 2004-05-17 18:52:03 +00:00
parent d0cb2d1455
commit 3704157a17
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2004-05-17 Moritz Bunkus <moritz@bunkus.org>
* mmg: bug fix: The chapter editor did not honor the values
selected for 'country' and 'language'.
2004-05-15 Moritz Bunkus <moritz@bunkus.org> 2004-05-15 Moritz Bunkus <moritz@bunkus.org>
* mkvmerge: bug fix: Audio sync for Vorbis was partially broken * mkvmerge: bug fix: Audio sync for Vorbis was partially broken

View File

@ -1089,7 +1089,7 @@ tab_chapters::on_language_code_selected(wxCommandEvent &evt) {
clanguage = &GetChild<KaxChapterLanguage>(*cdisplay); clanguage = &GetChild<KaxChapterLanguage>(*cdisplay);
*static_cast<EbmlString *>(clanguage) = *static_cast<EbmlString *>(clanguage) =
wxMB(extract_language_code(cob_language_code->GetValue())); wxMB(extract_language_code(cob_language_code->GetStringSelection()));
label = create_chapter_label(*t->chapter); label = create_chapter_label(*t->chapter);
tc_chapters->SetItemText(id, label); tc_chapters->SetItemText(id, label);
@ -1123,7 +1123,7 @@ tab_chapters::on_country_code_selected(wxCommandEvent &evt) {
if (cdisplay == NULL) if (cdisplay == NULL)
return; return;
if (cob_country_code->GetValue().Length() == 0) { if (cob_country_code->GetStringSelection().Length() == 0) {
i = 0; i = 0;
while (i < cdisplay->ListSize()) { while (i < cdisplay->ListSize()) {
if (EbmlId(*(*cdisplay)[i]) == KaxChapterCountry::ClassInfos.GlobalId) { if (EbmlId(*(*cdisplay)[i]) == KaxChapterCountry::ClassInfos.GlobalId) {
@ -1136,7 +1136,7 @@ tab_chapters::on_country_code_selected(wxCommandEvent &evt) {
} }
ccountry = &GetChild<KaxChapterCountry>(*cdisplay); ccountry = &GetChild<KaxChapterCountry>(*cdisplay);
*static_cast<EbmlString *>(ccountry) = *static_cast<EbmlString *>(ccountry) =
wxMB(cob_country_code->GetValue()); wxMB(cob_country_code->GetStringSelection());
} }
void void