summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-01-02 23:54:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2013-01-02 23:54:06 +0000
commit67265c6d90b2a84300e99ac629f9516b4d43f07f (patch)
tree9883a6bbce4d4a422be93793169e82255458fd5c /gtk2_ardour/editor_drag.h
parentbcab77225765a35217505ce668404ae8a8feb999 (diff)
various fixes for moving markers, fixes a crash reported by tim blechmann and also likely #5232 and #5241
git-svn-id: svn://localhost/ardour2/branches/3.0@13754 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r--gtk2_ardour/editor_drag.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h
index e3e4b5e665..196552f96a 100644
--- a/gtk2_ardour/editor_drag.h
+++ b/gtk2_ardour/editor_drag.h
@@ -682,7 +682,16 @@ private:
void update_item (ARDOUR::Location *);
Marker* _marker; ///< marker being dragged
- std::list<ARDOUR::Location*> _copied_locations;
+
+ struct CopiedLocationMarkerInfo {
+ ARDOUR::Location* location;
+ std::vector<Marker*> markers;
+ bool move_both;
+ CopiedLocationMarkerInfo (ARDOUR::Location* l, Marker* m);
+ };
+
+ typedef std::list<CopiedLocationMarkerInfo> CopiedLocationInfo;
+ CopiedLocationInfo _copied_locations;
ArdourCanvas::Points _points;
};