diff base/Layer.cpp @ 4:149bb02a41ba

* Session file save, and the skeleton of session file load.
author Chris Cannam
date Fri, 13 Jan 2006 18:05:07 +0000
parents 581f67f370f3
children 31c4ed2d5da6
line wrap: on
line diff
--- a/base/Layer.cpp	Thu Jan 12 17:19:08 2006 +0000
+++ b/base/Layer.cpp	Fri Jan 13 18:05:07 2006 +0000
@@ -41,12 +41,12 @@
     
     s += indent;
 
-    s += QString("<layer type=\"%1\" id=\"%2\" name=\"%3\" model=\"%4\" %5/>\n")
+    s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5/>\n")
 	.arg(LayerFactory::instance()->getLayerTypeName
 	     (LayerFactory::instance()->getLayerType(this)))
-	.arg((intptr_t)this)
+	.arg(getObjectExportId(this))
 	.arg(objectName())
-	.arg((intptr_t)getModel())
+	.arg(getObjectExportId(getModel()))
 	.arg(extraAttributes);
 
     return s;