+
+/**
+ * @param tv Track.
+ * @return true if any of the selection's regions are on tv.
+ */
+bool
+RegionSelection::involves (const TimeAxisView& tv) const
+{
+ for (RegionSelection::const_iterator i = begin(); i != end(); ++i) {
+ if (&(*i)->get_trackview() == &tv) {
+ return true;
+ }
+ }
+ return false;
+}
+