summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-18 21:03:11 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-18 21:03:11 -0400
commit76a3a9453624028267fe4ece14faa3ab8d4f5923 (patch)
tree3d80d8c53236aa6344c524e8b0377f311ffddeea /gtk2_ardour/editor_selection.cc
parent8419248a94c743b29c8a524a82c71e8df3273d61 (diff)
explanatory comment
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r--gtk2_ardour/editor_selection.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index e1027e4e9b..3ad49e9edc 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -991,6 +991,15 @@ Editor::time_selection_changed ()
return;
}
+ /* XXX this is superficially inefficient. Hide the selection in all
+ * tracks, then show it in all selected tracks.
+ *
+ * However, if you investigate what this actually does, it isn't
+ * anywhere nearly as bad as it may appear. Remember: nothing is
+ * redrawn or even recomputed during these two loops - that only
+ * happens when we next render ...
+ */
+
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
(*i)->hide_selection ();
}