Fix conversion in 41b997a90 (monitor cut, invert)
authorRobin Gareus <robin@gareus.org>
Tue, 25 Apr 2017 15:22:39 +0000 (17:22 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 25 Apr 2017 15:22:54 +0000 (17:22 +0200)
libs/ardour/monitor_processor.cc

index 3047b7ec257a8b4aad382b98bca0da1d5adaefc0..8160b7d1c7eed5e5134d4731288d66bb4adfc05a 100644 (file)
@@ -247,8 +247,8 @@ MonitorProcessor::state (bool full)
                chn_node->set_property ("id", chn);
 
                // implicitly cast these to bool
-               chn_node->set_property (X_("cut"), (*x)->cut == GAIN_COEFF_UNITY);
-               chn_node->set_property (X_("invert"), (*x)->polarity == GAIN_COEFF_UNITY);
+               chn_node->set_property (X_("cut"), (*x)->cut != GAIN_COEFF_UNITY);
+               chn_node->set_property (X_("invert"), (*x)->polarity != GAIN_COEFF_UNITY);
                chn_node->set_property (X_("dim"), (*x)->dim == true);
                chn_node->set_property (X_("solo"), (*x)->soloed == true);