possible fix for off-by-one issue with MIDI binding maps etc.
authorPaul Davis <paul@linuxaudiosystems.com>
Sat, 9 Jul 2016 22:19:27 +0000 (18:19 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Sat, 9 Jul 2016 22:19:27 +0000 (18:19 -0400)
libs/ardour/controllable_descriptor.cc

index f617468211728e7f713697eb6605d2c680d2c844..fff8b0050be365d926e8dcc5ae0fbacc10201e93 100644 (file)
@@ -133,6 +133,8 @@ ControllableDescriptor::set (const std::string& str)
                } else {
                        return -1;
                }
+
+               _presentation_order -= 1; /* order is zero-based, but maps use 1-based */
        }
 
        if (path[1] == "gain") {