Fix merge regression: use TempoLines class instead of same built in to editor.
[ardour.git] / libs / ardour / quantize.cc
index ff8925edd95039d440f45a79d7398a1956c1e679..3b5a264a7b84ff77d62c9fca9ab199be9995a0fd 100644 (file)
@@ -72,12 +72,12 @@ Quantize::run (boost::shared_ptr<Region> r)
        for (Evoral::Sequence::Notes::iterator i = model->notes().begin();
                        i != model->notes().end(); ++i) {
                const double new_time = lrint((*i)->time() / q_frames) * q_frames;
-               double new_dur = lrint((*i)->duration() / q_frames) * q_frames;
+               double new_dur = lrint((*i)->length() / q_frames) * q_frames;
                if (new_dur == 0.0)
                        new_dur = q_frames;
                
                (*i)->set_time(new_time);
-               (*i)->set_duration(new_dur);
+               (*i)->set_length(new_dur);
        }
 
        model->set_edited(true);