comparison layer/Layer.cpp @ 203:258af0c4dc28

* Fix crash in short spectrogram paint * Fix incorrect apparent end point for waveforms
author Chris Cannam
date Wed, 14 Feb 2007 17:52:06 +0000
parents 42118892f428
children 6969f21da18a
comparison
equal deleted inserted replaced
202:cec1f78fbfca 203:258af0c4dc28
41 } 41 }
42 42
43 QString 43 QString
44 Layer::getLayerPresentationName() const 44 Layer::getLayerPresentationName() const
45 { 45 {
46 QString layerName = objectName(); 46 // QString layerName = objectName();
47
48 LayerFactory *factory = LayerFactory::getInstance();
49 QString layerName = factory->getLayerPresentationName
50 (factory->getLayerType(this));
51
47 QString modelName; 52 QString modelName;
48 if (getModel()) modelName = getModel()->objectName(); 53 if (getModel()) modelName = getModel()->objectName();
49 54
50 QString text; 55 QString text;
51 if (modelName != "") { 56 if (modelName != "") {