summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-05-31 14:39:48 +0000
committerCarl Hetherington <carl@carlh.net>2012-05-31 14:39:48 +0000
commitfc77252d5186360c6a00f0f098f43253cd26e4ba (patch)
tree43f75e98ba28a02484b1ec9b92ee4274a46ce424 /gtk2_ardour/selection.cc
parent5c298dfef3c10583b92993e3eb16301439b78884 (diff)
Slightly unpleasant hack to stop control points being
unselected when you ctrl-drag a selected point in order to do a push drag. git-svn-id: svn://localhost/ardour2/branches/3.0@12502 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 724618e540..009b40d26d 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -862,6 +862,12 @@ Selection::selected (RegionView* rv)
}
bool
+Selection::selected (ControlPoint* cp)
+{
+ return find (points.begin(), points.end(), cp) != points.end();
+}
+
+bool
Selection::empty (bool internal_selection)
{
bool object_level_empty = regions.empty () &&