View Issue Details

IDProjectCategoryView StatusLast Update
0002573ardourbugspublic2020-04-19 20:13
Reporterseanbutnotheard Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.7.1 
Summary0002573: [PATCH] ctrl+button2 drag in lock mode creates unusable regions
Descriptionin lock edit mode, a "ctrl+button2 drag" exhibits the following behavior:

-the region does not initially appear to be duplicated, but the duplicate is actually just unmovable until the button is released
-after duplicating the region, the duplicate can be moved but does weird things (does't follow zoom changes, disappears randomly, etc.)

to reproduce:
-create new session
-switch to lock edit mode
-record a bit of audio
-ctrl+button2 drag the new region
-zoom in+out and try to move the resulting duplicate to see the odd effects

When I initially encountered the bug, the duplicate region did not exist when I repoened the session.

The work-around is to stay in "slide edit" when duplicating regions.
TagsNo tags attached.

Activities

cth103

2009-10-20 20:16

administrator   ~0006784

Confirmed, something funny is definitely going on here...

cth103

2009-10-20 20:43

administrator   ~0006786

I think some or all of these problems are fixed in 3.0 revision 5825.

2009-10-20 20:49

 

2573.patch (955 bytes)   
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 1bcd75e..83bb3bd 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -3727,12 +3727,7 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
 		bool x_move_allowed;
 		
 		if (Config->get_edit_mode() == Lock) {
-			if (drag_info.copy) {
-				x_move_allowed = !drag_info.x_constrained;
-			} else {
-				/* in locked edit mode, reverse the usual meaning of x_constrained */
-				x_move_allowed = drag_info.x_constrained;
-			}
+			x_move_allowed = drag_info.x_constrained;
 		} else {
 			x_move_allowed = !drag_info.x_constrained;
 		}
@@ -3979,7 +3974,7 @@ Editor::region_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* event
 	   the drag.
 	*/
 	
-	if (Config->get_edit_mode() == Lock && !drag_info.copy) {
+	if (Config->get_edit_mode() == Lock) {
 		drag_info.x_constrained = !drag_info.x_constrained;
 	}
 
2573.patch (955 bytes)   

cth103

2009-10-20 20:50

administrator   ~0006787

The attached patch should improve things on 2.8.x / 2.0 SVN, if you'd like to test it?

BenLoftis

2009-10-21 16:21

developer   ~0006844

Tested and committed to 2.8.3 SVN

system

2020-04-19 20:13

developer   ~0021874

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2009-02-26 15:38 seanbutnotheard New Issue
2009-10-20 20:16 cth103 Note Added: 0006784
2009-10-20 20:16 cth103 Status new => confirmed
2009-10-20 20:43 cth103 Note Added: 0006786
2009-10-20 20:49 cth103 File Added: 2573.patch
2009-10-20 20:50 cth103 Note Added: 0006787
2009-10-20 20:50 cth103 Status confirmed => assigned
2009-10-20 20:50 cth103 Assigned To => paul
2009-10-20 20:50 cth103 cost => 0.00
2009-10-20 20:50 cth103 Summary ctrl+button2 drag in lock mode creates unusable regions => [PATCH] ctrl+button2 drag in lock mode creates unusable regions
2009-10-21 16:21 BenLoftis Note Added: 0006844
2009-10-22 01:57 cth103 Status assigned => resolved
2009-10-22 01:57 cth103 Resolution open => fixed
2020-04-19 20:13 system Note Added: 0021874
2020-04-19 20:13 system Status resolved => closed