fix crash when copy'ing latent plugins
[ardour.git] / libs / ardour / location_importer.cc
index eda636ef71ca01df68fbccff995c12dcf5ddfb03..87c304ff9e264238fa9dfa9e29016cdafccf6b5b 100644 (file)
@@ -27,7 +27,7 @@
 #include "pbd/convert.h"
 #include "pbd/failed_constructor.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace PBD;
@@ -104,7 +104,7 @@ LocationImporter::~LocationImporter ()
 string
 LocationImporter::get_info () const
 {
-       nframes_t start, end;
+       framepos_t start, end;
        Timecode::Time start_time, end_time;
 
        // Get sample positions
@@ -114,8 +114,8 @@ LocationImporter::get_info () const
        iss_end >> end;
 
        // Convert to timecode
-       session.sample_to_timecode (start, start_time, false);
-       session.sample_to_timecode (end, end_time, false);
+       session.sample_to_timecode (start, start_time, true, false);
+       session.sample_to_timecode (end, end_time, true, false);
 
        // return info
        std::ostringstream oss;