diff FrmExportXml.cs @ 167:9808adf2d566 default tip

Re #419: Remove assumptions of a file-based install * Update GTK# GUI to use Streams version of XSLT export
author IBBoard <dev@ibboard.co.uk>
date Wed, 28 Nov 2012 20:25:53 +0000
parents 0d8004d6a4e5
children
line wrap: on
line diff
--- a/FrmExportXml.cs	Mon Oct 08 19:27:56 2012 +0100
+++ b/FrmExportXml.cs	Wed Nov 28 20:25:53 2012 +0000
@@ -88,7 +88,10 @@
 	
 				if (transformWidget.TransformEnabled)
 				{
-					WarFoundryXmlWithXslExporter.GetDefault().ExportArmyWithTransform(army, fileName, transformWidget.GetXsltPath());
+					using (Stream stream = transformWidget.GetXsltStream())
+					{
+						WarFoundryXmlWithXslExporter.GetDefault().ExportArmyWithTransform(army, fileName, stream);
+					}
 				}
 				else
 				{