Mercurial > hg > svcore
diff rdf/RDFImporter.cpp @ 1661:353a2d15f213 single-point
Update TextModel
author | Chris Cannam |
---|---|
date | Fri, 22 Mar 2019 11:04:51 +0000 |
parents | 5b7b01da430a |
children | 565575463752 |
line wrap: on
line diff
--- a/rdf/RDFImporter.cpp Thu Mar 21 13:33:30 2019 +0000 +++ b/rdf/RDFImporter.cpp Fri Mar 22 11:04:51 2019 +0000 @@ -717,11 +717,11 @@ TextModel *tm = dynamic_cast<TextModel *>(model); if (tm) { - TextModel::Point point + Event e (ftime, values.empty() ? 0.5f : values[0] < 0.f ? 0.f : values[0] > 1.f ? 1.f : values[0], // I was young and feckless once too label); - tm->addPoint(point); + tm->add(e); return; }