Mercurial > hg > svgui
changeset 795:54efa0a4f728 tonioni
Fix Tony bug #981: note editing does not work when pitch track is invisible
author | Chris Cannam |
---|---|
date | Fri, 13 Jun 2014 15:29:06 +0100 |
parents | 9c272d39c3e3 |
children | 7717751f4407 edada332c374 |
files | layer/FlexiNoteLayer.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp Thu Jun 12 18:52:52 2014 +0100 +++ b/layer/FlexiNoteLayer.cpp Fri Jun 13 15:29:06 2014 +0100 @@ -1329,7 +1329,7 @@ for (int i = 0; i < v->getLayerCount(); ++i) { Layer *layer = v->getLayer(i); - if (layer && !layer->isLayerDormant(v) && + if (layer && layer->getLayerPresentationName() != "candidate") { cerr << "FlexiNoteLayer::getAssociatedPitchModel: looks like our layer is " << layer << endl; SparseTimeValueModel *model = qobject_cast<SparseTimeValueModel *>