Mercurial > hg > svapp
changeset 353:5a66f4e5a3dc tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Thu, 29 May 2014 16:27:52 +0100 |
parents | 36efd75d7b7b (current diff) 1d8cb0d92f4b (diff) |
children | 4969e7921931 |
files | |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/framework/MainWindowBase.cpp Wed May 14 09:58:27 2014 +0100 +++ b/framework/MainWindowBase.cpp Thu May 29 16:27:52 2014 +0100 @@ -925,14 +925,14 @@ m_labeller->setSampleRate(sodm->getSampleRate()); - if (m_labeller->actingOnPrevPoint()) { + if (m_labeller->actingOnPrevPoint() && havePrevPoint) { command->deletePoint(prevPoint); } m_labeller->label<SparseOneDimensionalModel::Point> (point, havePrevPoint ? &prevPoint : 0); - if (m_labeller->actingOnPrevPoint()) { + if (m_labeller->actingOnPrevPoint() && havePrevPoint) { command->addPoint(prevPoint); } }