fix error in export range dialog caused by using wrong sndfile helper array for file ending

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@10103 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-09-21 02:29:08 +00:00
parent 7ec428ca56
commit 42d8e5ddc1
2 changed files with 2 additions and 3 deletions

View File

@ -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:

View File

@ -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);