minor but important fix for the wrap-buffer case in a recording audio diskstream
[ardour.git] / libs / ardour / tempo.cc
index 78ee5a9ab708730b0784c6ec6a3ac45cdaa48bad..579b523fa08b475596aeb4ebb6e8bab9374a7068 100644 (file)
@@ -1672,7 +1672,7 @@ void
 TempoMap::insert_time (framepos_t where, framecnt_t amount)
 {
        for (Metrics::iterator i = metrics->begin(); i != metrics->end(); ++i) {
-               if ((*i)->frame() >= where && (*i)->frame() != 0) {
+               if ((*i)->frame() >= where && (*i)->movable ()) {
                        (*i)->set_frame ((*i)->frame() + amount);
                }
        }