Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 245:447cb52adc6b
* Fix #1706927 NaNs from plugin outputs should not be used
author | Chris Cannam |
---|---|
date | Fri, 27 Apr 2007 15:39:48 +0000 |
parents | 57c2350a8c40 |
children | 46faec7aae12 |
line wrap: on
line diff
--- 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 {