View Issue Details

IDProjectCategoryView StatusLast Update
0006350ardourbugspublic2020-04-19 20:17
Reporterovenwerks Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version4.X git (version in description) 
Summary0006350: mcp surface control: Bank math error. left at bank 0 then right goes to max bank.
Descriptioninteger math with -1 does strange things attached patch catches left at zero case.
TagsNo tags attached.

Activities

2015-05-27 05:20

 

patch.txt (621 bytes)   
diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc
index ee04d68..1cb388d 100644
--- a/libs/surfaces/mackie/mcp_buttons.cc
+++ b/libs/surfaces/mackie/mcp_buttons.cc
@@ -102,8 +102,12 @@ MackieControlProtocol::left_press (Button &)
 
 	DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank left with current initial = %1 nstrips = %2 tracks/busses = %3\n",
 							   _current_initial_bank, strip_cnt, sorted.size()));
-
+	if (_current_initial_bank > 0) {
 		switch_banks ((_current_initial_bank - 1) / strip_cnt * strip_cnt);
+	} else {
+		switch_banks (0);
+	}
+
 
 	return on;
 }
patch.txt (621 bytes)   

paul

2015-05-27 13:03

administrator   ~0016738

comitted and pushed, thanks.

system

2020-04-19 20:17

developer   ~0023471

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
2015-05-27 05:17 ovenwerks New Issue
2015-05-27 05:20 ovenwerks File Added: patch.txt
2015-05-27 13:03 paul Note Added: 0016738
2015-05-27 13:03 paul Status new => resolved
2015-05-27 13:03 paul Resolution open => fixed
2015-05-27 13:03 paul Assigned To => paul
2020-04-19 20:17 system Note Added: 0023471
2020-04-19 20:17 system Status resolved => closed