Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 243:0c868fb3623c
* fix to selection of default input material for transform -- avoid drawing
the default from e.g. time ruler layer
author | Chris Cannam |
---|---|
date | Mon, 18 Feb 2008 11:13:31 +0000 |
parents | 9aace07f6082 |
children | 587c79827c69 |
comparison
equal
deleted
inserted
replaced
242:cf8748822f4d | 243:0c868fb3623c |
---|---|
2950 | 2950 |
2951 Model *defaultInputModel = 0; | 2951 Model *defaultInputModel = 0; |
2952 for (int j = 0; j < pane->getLayerCount(); ++j) { | 2952 for (int j = 0; j < pane->getLayerCount(); ++j) { |
2953 Layer *layer = pane->getLayer(j); | 2953 Layer *layer = pane->getLayer(j); |
2954 if (!layer) continue; | 2954 if (!layer) continue; |
2955 if (LayerFactory::getInstance()->getLayerType(layer) != | |
2956 LayerFactory::Waveform && | |
2957 !layer->isLayerOpaque()) continue; | |
2955 Model *model = layer->getModel(); | 2958 Model *model = layer->getModel(); |
2956 if (!model) continue; | 2959 if (!model) continue; |
2957 for (size_t k = 0; k < candidateInputModels.size(); ++k) { | 2960 for (size_t k = 0; k < candidateInputModels.size(); ++k) { |
2958 if (candidateInputModels[k] == model) { | 2961 if (candidateInputModels[k] == model) { |
2959 defaultInputModel = model; | 2962 defaultInputModel = model; |