- if (!region) {
- iter = tmp;
- continue;
- }
-
- nframes_t origlen = region->length();
-
- if (region == rec_regions.back().first && rec_active) {
-
- if (last_rec_data_frame > region->start()) {
-
- nframes_t nlen = last_rec_data_frame - region->start();
-
- if (nlen != region->length()) {
-
- region->suspend_property_changes ();
- region->set_position (_trackview.track()->get_capture_start_frame(n), this);
- region->set_length (nlen, this);
- region->resume_property_changes ();
-
- if (origlen == 1) {
- /* our special initial length */
- add_region_view_internal (region, false, true);
- }
+ if (last_rec_data_frame > region->start()) {
+
+ nframes_t nlen = last_rec_data_frame - region->start();
+
+ if (nlen != region->length()) {