diff --git a/gtk2_ardour/export_dialog.h b/gtk2_ardour/export_dialog.h index 9a15f441e0..c1faa37fee 100644 --- a/gtk2_ardour/export_dialog.h +++ b/gtk2_ardour/export_dialog.h @@ -89,8 +89,7 @@ class ExportDialog : public ArdourDialog progress_bar.set_fraction (progress); } ARDOUR::Session& getSession() { return *session; }; - string get_selected_header_format() { - return header_format_combo.get_active_text(); }; + int get_selected_header_format() { return header_format_combo.get_active_row_number(); } string get_selected_file_name() { return file_entry.get_text(); }; private: diff --git a/gtk2_ardour/export_range_markers_dialog.cc b/gtk2_ardour/export_range_markers_dialog.cc index 1d81f57ade..51ecc71dfd 100644 --- a/gtk2_ardour/export_range_markers_dialog.cc +++ b/gtk2_ardour/export_range_markers_dialog.cc @@ -74,7 +74,7 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList& string filepath = get_target_filepath( get_selected_file_name(), currentLocation->name(), - get_selected_header_format()); + sndfile_file_endings_strings[get_selected_header_format()]); initSpec(filepath);