diff layer/LayerFactory.cpp @ 8:06bba0b79b1c

* Session file save, and the skeleton of session file load.
author Chris Cannam
date Fri, 13 Jan 2006 18:05:07 +0000
parents 02aaea1ffaf7
children 2d5005f2b3d9
line wrap: on
line diff
--- a/layer/LayerFactory.cpp	Thu Jan 12 17:45:23 2006 +0000
+++ b/layer/LayerFactory.cpp	Fri Jan 13 18:05:07 2006 +0000
@@ -195,7 +195,7 @@
 	std::cerr << "LayerFactory::createLayer: Unknown layer type " 
 		  << type << std::endl;
     } else {
-	setModel(layer, model);
+	if (model) setModel(layer, model);
 	std::cerr << "LayerFactory::createLayer: Setting object name "
 		  << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl;
 	layer->setObjectName(getLayerPresentationName(type));