13
0

Fix up hack to cope with zero-length imported MIDI regions so that it actually works.

git-svn-id: svn://localhost/ardour2/branches/3.0@12629 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-09 15:04:18 +00:00
parent de2d3057b5
commit 8da3833895

View File

@ -788,7 +788,7 @@ Editor::add_sources (vector<string> paths, SourceList& sources, framepos_t& pos,
*/
framecnt_t len = (*x)->length (pos);
if (len == 0) {
len = (60 / 120) * _session->frame_rate ();
len = (60.0 / 120.0) * _session->frame_rate ();
}
plist.add (ARDOUR::Properties::start, 0);