Mercurial > hg > svgui
comparison layer/RegionLayer.cpp @ 1429:8a7c82282fbc single-point
Update TimeValueLayer etc
author | Chris Cannam |
---|---|
date | Tue, 19 Mar 2019 13:06:35 +0000 |
parents | c9fa16e41664 |
children | 5b9692768beb |
comparison
equal
deleted
inserted
replaced
1428:c9fa16e41664 | 1429:8a7c82282fbc |
---|---|
1378 m_model->getEventsStartingWithin(s.getStartFrame(), s.getDuration()); | 1378 m_model->getEventsStartingWithin(s.getStartFrame(), s.getDuration()); |
1379 | 1379 |
1380 for (EventVector::iterator i = points.begin(); | 1380 for (EventVector::iterator i = points.begin(); |
1381 i != points.end(); ++i) { | 1381 i != points.end(); ++i) { |
1382 | 1382 |
1383 if (s.contains(i->getFrame())) { | 1383 Event newPoint = (*i) |
1384 Event newPoint = (*i) | 1384 .withFrame(i->getFrame() + newStartFrame - s.getStartFrame()); |
1385 .withFrame(i->getFrame() + newStartFrame - s.getStartFrame()); | 1385 command->remove(*i); |
1386 command->remove(*i); | 1386 command->add(newPoint); |
1387 command->add(newPoint); | |
1388 } | |
1389 } | 1387 } |
1390 | 1388 |
1391 finish(command); | 1389 finish(command); |
1392 recalcSpacing(); | 1390 recalcSpacing(); |
1393 } | 1391 } |