# HG changeset patch # User Chris Cannam # Date 1177688388 0 # Node ID 447cb52adc6b72b61c12eaf861f82ed8195e2570 # Parent 5105be027d8e24bbfe823170995b1bb9af9a2132 * Fix #1706927 NaNs from plugin outputs should not be used diff -r 5105be027d8e -r 447cb52adc6b layer/LayerFactory.cpp --- a/layer/LayerFactory.cpp Fri Apr 27 14:35:04 2007 +0000 +++ b/layer/LayerFactory.cpp Fri Apr 27 15:39:48 2007 +0000 @@ -289,11 +289,9 @@ if (layerType == TimeInstants) { return new SparseOneDimensionalModel(baseModel->getSampleRate(), 1); } else if (layerType == TimeValues) { - return new SparseTimeValueModel(baseModel->getSampleRate(), 1, - 0.0, 0.0, true); + return new SparseTimeValueModel(baseModel->getSampleRate(), 1, true); } else if (layerType == Notes) { - return new NoteModel(baseModel->getSampleRate(), 1, - 0.0, 0.0, true); + return new NoteModel(baseModel->getSampleRate(), 1, true); } else if (layerType == Text) { return new TextModel(baseModel->getSampleRate(), 1, true); } else {