diff base/Layer.cpp @ 77:2beca8ddcdc3

* Add BZipFileDevice to handle bzip2 compress/uncompress without all that ugly code in MainWindow.cpp * Remove all that ugly code in MainWindow.cpp and replace with uses of BZipFileDevice * Fix layer import/export for SV XML layers * and a few other minor fixes
author Chris Cannam
date Wed, 12 Apr 2006 09:59:40 +0000
parents d397ea0a79f5
children c30728d5625c
line wrap: on
line diff
--- a/base/Layer.cpp	Mon Apr 10 17:22:59 2006 +0000
+++ b/base/Layer.cpp	Wed Apr 12 09:59:40 2006 +0000
@@ -70,10 +70,10 @@
     s += indent;
 
     s += QString("<layer id=\"%2\" type=\"%1\" name=\"%3\" model=\"%4\" %5/>\n")
-	.arg(LayerFactory::instance()->getLayerTypeName
-	     (LayerFactory::instance()->getLayerType(this)))
+	.arg(encodeEntities(LayerFactory::instance()->getLayerTypeName
+                            (LayerFactory::instance()->getLayerType(this))))
 	.arg(getObjectExportId(this))
-	.arg(objectName())
+	.arg(encodeEntities(objectName()))
 	.arg(getObjectExportId(getModel()))
 	.arg(extraAttributes);