diff --git a/ChangeLog b/ChangeLog index e0389ed5b..4b16e5b92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-07-30 Moritz Bunkus + + * mmg header editor: bug fix: If a file was loaded that did not + contain 'track language' elements and those elements were + unchanged then they would be set to 'und' upon saving. Now they're + left as-is, and when adding them to the file the drop-down box + defaults to 'eng' being selected as per Matroska default value + specifications. Fix for bug 525. + 2010-07-29 Moritz Bunkus * mkvextract, mkvinfo, mkvpropedit: new feature: Added the option diff --git a/src/mmg/header_editor/language_value_page.cpp b/src/mmg/header_editor/language_value_page.cpp index b5e4d5fca..5c7549799 100644 --- a/src/mmg/header_editor/language_value_page.cpp +++ b/src/mmg/header_editor/language_value_page.cpp @@ -53,8 +53,7 @@ he_language_value_page_c::translate_ui() { wxControl * he_language_value_page_c::create_input_control() { - if (NULL != m_element) - m_original_value = wxU(dynamic_cast(m_element)); + m_original_value = NULL != m_element ? wxU(dynamic_cast(m_element)) : wxU("eng"); m_cb_language = new wxMTX_COMBOBOX_TYPE(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_DROPDOWN | wxCB_READONLY);