diff 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
line wrap: on
line diff
--- a/layer/Layer.cpp	Fri Feb 09 11:32:34 2007 +0000
+++ b/layer/Layer.cpp	Wed Feb 14 17:52:06 2007 +0000
@@ -43,7 +43,12 @@
 QString
 Layer::getLayerPresentationName() const
 {
-    QString layerName = objectName();
+//    QString layerName = objectName();
+
+    LayerFactory *factory = LayerFactory::getInstance();
+    QString layerName = factory->getLayerPresentationName
+        (factory->getLayerType(this));
+
     QString modelName;
     if (getModel()) modelName = getModel()->objectName();