Reparent cursor used in Cut mode so that it is on top and visible
authorTim Mayberry <mojofunk@gmail.com>
Mon, 21 Nov 2016 10:11:47 +0000 (20:11 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Mon, 21 Nov 2016 10:11:47 +0000 (20:11 +1000)
gtk2_ardour/editor.h
gtk2_ardour/editor_drag.cc

index a6c6bdd2c9d7de924962875ea27c317854a5fe06..beb3978c7f1f063340ee20f3500ee5f46a05d16a 100644 (file)
@@ -2256,6 +2256,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
        Gtkmm2ext::ActionMap myactions;
 
        friend class Drag;
+       friend class RegionCutDrag;
        friend class RegionDrag;
        friend class RegionMoveDrag;
        friend class RegionSpliceDrag;
index 4cba008f5ffc03de0ff905e0830e6545a21b570f..8ba745d5876188a8c29117ead3a4a386ed4770fe 100644 (file)
@@ -6518,6 +6518,7 @@ RegionCutDrag::RegionCutDrag (Editor* e, ArdourCanvas::Item* item, framepos_t po
 {
        line->set_position (pos);
        line->show ();
+       line->track_canvas_item().reparent (_editor->_drag_motion_group);
 }
 
 RegionCutDrag::~RegionCutDrag ()