[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#446597: Patch for this bug



tags 446597 +patch
thanks

The appended patch works for me (tested on mips/unstable).


Thiemo


--- ardour-2.1/gtk2_ardour/editor_mouse.cc.old	2007-11-06 11:25:10.000000000 +0000
+++ ardour-2.1/gtk2_ardour/editor_mouse.cc	2007-11-06 11:26:51.000000000 +0000
@@ -1530,8 +1530,8 @@ Editor::motion_handler (ArdourCanvas::It
 		*/
 		if (!drag_info.move_threshold_passed) {
 
-			bool x_threshold_passed =  (abs ((nframes64_t) (drag_info.current_pointer_x - drag_info.grab_x)) > 4LL);
-			bool y_threshold_passed =  (abs ((nframes64_t) (drag_info.current_pointer_y - drag_info.grab_y)) > 4LL);
+			bool x_threshold_passed =  (llabs ((nframes64_t) (drag_info.current_pointer_x - drag_info.grab_x)) > 4LL);
+			bool y_threshold_passed =  (llabs ((nframes64_t) (drag_info.current_pointer_y - drag_info.grab_y)) > 4LL);
 			
 			drag_info.move_threshold_passed = (x_threshold_passed || y_threshold_passed);
 			




Reply to: