no need for a call to zoom_to_show() after set_region()

Pianoroll::set_region() calls that method itself.
This commit is contained in:
Paul Davis
2025-04-24 11:56:42 -06:00
parent 6f45a9f9ac
commit 008c624a2d

View File

@@ -2198,7 +2198,6 @@ Pianoroll::trigger_prop_change (PBD::PropertyChange const & what_changed)
std::shared_ptr<MidiRegion> mr = std::dynamic_pointer_cast<MidiRegion> (ref.trigger()->the_region());
if (mr) {
set_region (mr);
zoom_to_show (timecnt_t (timepos_t (max_extents_scale() * max_zoom_extent ().second.samples())));
}
}
}