changeset 64:b6605be1a2d1

* Try to ensure alignment works correctly with MATCH plugin v1 as well as v2
author Chris Cannam
date Wed, 28 Nov 2007 13:01:50 +0000
parents 0ffab5d7e3e1
children a8c8a9551a28
files framework/Document.cpp
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/framework/Document.cpp	Wed Nov 28 11:55:09 2007 +0000
+++ b/framework/Document.cpp	Wed Nov 28 13:01:50 2007 +0000
@@ -743,8 +743,14 @@
         factory->getDefaultContextForTransformer(id, aggregate);
     context.stepSize = context.blockSize/2;
 
-    Model *transformOutput = factory->transform
-        (id, aggregate, context, "<plugin param-serialise=\"1\"/>");
+    QString args = "<plugin param-serialise=\"1\"/>";
+
+    Model *transformOutput = factory->transform(id, aggregate, context, args);
+
+    if (!transformOutput) {
+        context.stepSize = 0;
+        transformOutput = factory->transform(id, aggregate, context, args);
+    }
 
     SparseTimeValueModel *path = dynamic_cast<SparseTimeValueModel *>
         (transformOutput);