# HG changeset patch # User Chris Cannam # Date 1196254910 0 # Node ID b6605be1a2d1709f718204674ad8ab6885a4e51f # Parent 0ffab5d7e3e1f0b921cf044492cb5b4a88f481f3 * Try to ensure alignment works correctly with MATCH plugin v1 as well as v2 diff -r 0ffab5d7e3e1 -r b6605be1a2d1 framework/Document.cpp --- 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, ""); + QString args = ""; + + Model *transformOutput = factory->transform(id, aggregate, context, args); + + if (!transformOutput) { + context.stepSize = 0; + transformOutput = factory->transform(id, aggregate, context, args); + } SparseTimeValueModel *path = dynamic_cast (transformOutput);