projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Repeat INSENSITIVE colors instead of relying on inheritance
[ardour.git]
/
libs
/
ardour
/
session_rtevents.cc
diff --git
a/libs/ardour/session_rtevents.cc
b/libs/ardour/session_rtevents.cc
index 8dba60f0e5cbe0017d423d80c2bad63d96a29b09..00d966acaae62d4c92cc006a1c4b6d1123969127 100644
(file)
--- a/
libs/ardour/session_rtevents.cc
+++ b/
libs/ardour/session_rtevents.cc
@@
-27,7
+27,7
@@
#include "ardour/track.h"
#include "ardour/vca_manager.h"
#include "ardour/track.h"
#include "ardour/vca_manager.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace std;
using namespace PBD;
using namespace std;
using namespace PBD;
@@
-37,7
+37,9
@@
using namespace Glib;
void
Session::set_controls (boost::shared_ptr<ControlList> cl, double val, Controllable::GroupControlDisposition gcd)
{
void
Session::set_controls (boost::shared_ptr<ControlList> cl, double val, Controllable::GroupControlDisposition gcd)
{
- std::cerr << "Session::set_controls called on " << cl->size() << " controls, group = " << enum_2_string (gcd) << std::endl;
+ if (cl->empty()) {
+ return;
+ }
for (ControlList::iterator ci = cl->begin(); ci != cl->end(); ++ci) {
/* as of july 2017 this is a no-op for everything except record enable */
for (ControlList::iterator ci = cl->begin(); ci != cl->end(); ++ci) {
/* as of july 2017 this is a no-op for everything except record enable */
@@
-50,6
+52,10
@@
Session::set_controls (boost::shared_ptr<ControlList> cl, double val, Controllab
void
Session::set_control (boost::shared_ptr<AutomationControl> ac, double val, Controllable::GroupControlDisposition gcd)
{
void
Session::set_control (boost::shared_ptr<AutomationControl> ac, double val, Controllable::GroupControlDisposition gcd)
{
+ if (!ac) {
+ return;
+ }
+
boost::shared_ptr<ControlList> cl (new ControlList);
cl->push_back (ac);
set_controls (cl, val, gcd);
boost::shared_ptr<ControlList> cl (new ControlList);
cl->push_back (ac);
set_controls (cl, val, gcd);