From d10f69819766782a6b9554f3ebf771008125eedd Mon Sep 17 00:00:00 2001 From: GZharun Date: Fri, 6 Feb 2015 14:49:42 +0200 Subject: [PATCH] [Summary] Fixed bug 44828 Crash then using Click on Skip marker area to create/delete skip marker --- gtk2_ardour/editor_drag.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index ff1c3768b6..f12555b52f 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -4577,7 +4577,7 @@ RangeMarkerBarDrag::motion (GdkEvent* event, bool first_move) _drag_rect->raise_to_top(); } - if (start != end) { + if (start != end && first_move_occured() ) { _editor->temp_location->set (start, end); double x1 = _editor->sample_to_pixel (start); @@ -4602,7 +4602,7 @@ RangeMarkerBarDrag::finished (GdkEvent* event, bool movement_occurred) int flags; if (movement_occurred) { - motion (event, false); + motion (event, !first_move_occured () ); _drag_rect->hide(); _crect->hide ();