force IFS=/ when calling path_expand, so that whitespace in paths doesn't cause worde...
[ardour.git] / libs / ardour / beats_frames_converter.cc
index 7ee8fbd090397c2fa7c04d2e83440588b5859524..59c0bb28962ffe10e954e9ed68ced4dbc0de6b35 100644 (file)
@@ -1,6 +1,6 @@
 /*
     Copyright (C) 2009 Paul Davis
-    Author: Dave Robillard
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -27,6 +27,8 @@ namespace ARDOUR {
 framecnt_t
 BeatsFramesConverter::to (double beats) const
 {
+       assert (beats >= 0);
+
        return _tempo_map.framepos_plus_bbt (_origin_b, Timecode::BBT_Time(beats)) - _origin_b;
 }