# HG changeset patch # User Chris Cannam # Date 1402669746 -3600 # Node ID 54efa0a4f728a90a8c42e640a0f9d0a3b79eb6f4 # Parent 9c272d39c3e3124c64173404db9ecac3ddccde8e Fix Tony bug #981: note editing does not work when pitch track is invisible diff -r 9c272d39c3e3 -r 54efa0a4f728 layer/FlexiNoteLayer.cpp --- 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