diff framework/Document.cpp @ 50:a8bb5b2aca4c

* Fix availability of alignment button and relative align/solo button state
author Chris Cannam
date Thu, 01 Nov 2007 16:02:01 +0000
parents c6328c8d6536
children e41af8419d4a
line wrap: on
line diff
--- a/framework/Document.cpp	Thu Nov 01 10:45:28 2007 +0000
+++ b/framework/Document.cpp	Thu Nov 01 16:02:01 2007 +0000
@@ -670,6 +670,14 @@
     return models;
 }
 
+bool
+Document::canAlign() const
+{
+    TransformId id = "vamp:match-vamp-plugin:match:path";
+    TransformFactory *factory = TransformFactory::getInstance();
+    return factory->haveTransform(id);
+}
+
 void
 Document::alignModel(Model *model)
 {