replace fixed-point linear interpolation with double-based version, thereby removing...
[ardour.git] / libs / ardour / io.cc
index 2397999a26a676f5521a949303af1dbfef27dc92..8c14466b0082b8e24206b46036ec62c1b09ba9cf 100644 (file)
@@ -1255,6 +1255,18 @@ IO::set_name_in_state (XMLNode& node, const string& new_name)
 bool
 IO::connected_to (boost::shared_ptr<const IO> other) const
 {
+       if (!other) {
+               /* do we have any connections at all? */
+
+               for (PortSet::const_iterator p = _ports.begin(); p != _ports.end(); ++p) {
+                       if (p->connected()) {
+                               return true;
+                       }
+               }
+
+               return false;
+       }
+
        assert (_direction != other->direction());
 
        uint32_t i, j;