Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 52:f2fe98a7c57e
* Use commands for add/delete pane in main window
* Add compound command collection to command history (for add pane, import file
etc)
* Add hide/show pane and hidden pane list to PaneStack
* Various other fixes
author | Chris Cannam |
---|---|
date | Mon, 13 Mar 2006 17:55:19 +0000 |
parents | ad214997dddb |
children | 68869408f5c7 |
line wrap: on
line diff
--- a/layer/LayerFactory.cpp Fri Mar 10 17:37:45 2006 +0000 +++ b/layer/LayerFactory.cpp Mon Mar 13 17:55:19 2006 +0000 @@ -231,7 +231,7 @@ } Layer * -LayerFactory::createLayer(LayerType type, Model *model, int channel) +LayerFactory::createLayer(LayerType type, int channel) { Layer *layer = 0; @@ -288,7 +288,6 @@ std::cerr << "LayerFactory::createLayer: Unknown layer type " << type << std::endl; } else { - if (model) setModel(layer, model); std::cerr << "LayerFactory::createLayer: Setting object name " << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; layer->setObjectName(getLayerPresentationName(type));