comparison layer/FlexiNoteLayer.cpp @ 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 bb1f2a20f7db
children 7717751f4407
comparison
equal deleted inserted replaced
794:9c272d39c3e3 795:54efa0a4f728
1327 1327
1328 cerr << "FlexiNoteLayer::getAssociatedPitchModel()" << endl; 1328 cerr << "FlexiNoteLayer::getAssociatedPitchModel()" << endl;
1329 1329
1330 for (int i = 0; i < v->getLayerCount(); ++i) { 1330 for (int i = 0; i < v->getLayerCount(); ++i) {
1331 Layer *layer = v->getLayer(i); 1331 Layer *layer = v->getLayer(i);
1332 if (layer && !layer->isLayerDormant(v) && 1332 if (layer &&
1333 layer->getLayerPresentationName() != "candidate") { 1333 layer->getLayerPresentationName() != "candidate") {
1334 cerr << "FlexiNoteLayer::getAssociatedPitchModel: looks like our layer is " << layer << endl; 1334 cerr << "FlexiNoteLayer::getAssociatedPitchModel: looks like our layer is " << layer << endl;
1335 SparseTimeValueModel *model = qobject_cast<SparseTimeValueModel *> 1335 SparseTimeValueModel *model = qobject_cast<SparseTimeValueModel *>
1336 (layer->getModel()); 1336 (layer->getModel());
1337 cerr << "FlexiNoteLayer::getAssociatedPitchModel: and its model is " << model << endl; 1337 cerr << "FlexiNoteLayer::getAssociatedPitchModel: and its model is " << model << endl;