fix computation of fixed ruler scales done before canvas width is set by allocation...
[ardour.git] / gtk2_ardour / export_range_markers_dialog.cc
index 06f590758c7d7602f27723e70fd960697e6d4d97..4b991629743ca4a598e0fe7c953e7d13cffbcfb3 100644 (file)
@@ -22,8 +22,6 @@
 
 #include <sstream>
 
-#include "pbd/filesystem.h"
-
 #include "ardour/audioengine.h"
 #include "ardour/sndfile_helpers.h"
 
@@ -76,7 +74,7 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList&
                        string filepath = get_target_filepath(
                                get_selected_file_name(),
                                currentLocation->name(),
-                               sndfile_file_ending_from_string(get_selected_header_format()));
+                               get_selected_header_format());
 
                        initSpec(filepath);
 
@@ -157,7 +155,7 @@ ExportRangeMarkersDialog::is_filepath_valid(string &filepath)
 
        // directory needs to exist and be writable
        string dirpath = Glib::path_get_dirname (filepath);
-       if (!exists_and_writable (sys::path (dirpath))) {
+       if (!exists_and_writable (dirpath)) {
                string txt = _("Cannot write file in: ") + dirpath;
                MessageDialog msg (*this, txt, false, MESSAGE_ERROR, BUTTONS_OK, true);
                msg.run();