[Monodevelop-patches-list] r2297 - trunk/MonoDevelop/Unused/Gdl
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Sun Mar 6 20:57:26 EST 2005
Author: jluke
Date: 2005-03-06 20:57:26 -0500 (Sun, 06 Mar 2005)
New Revision: 2297
Modified:
trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
Log:
fix save to file
Modified: trunk/MonoDevelop/Unused/Gdl/DockLayout.cs
===================================================================
--- trunk/MonoDevelop/Unused/Gdl/DockLayout.cs 2005-03-07 01:50:01 UTC (rev 2296)
+++ trunk/MonoDevelop/Unused/Gdl/DockLayout.cs 2005-03-07 01:57:26 UTC (rev 2297)
@@ -129,7 +129,9 @@
if (File.Exists (file))
{
doc = new XmlDocument ();
- doc.Load (file);
+ Stream s = File.OpenRead (file);
+ doc.Load (s);
+ s.Close ();
// minimum validation: test root element
if (this.RootNode != null) {
// FIXME: I cheated here
@@ -232,6 +234,8 @@
XmlTextWriter writer = new XmlTextWriter (file, System.Text.Encoding.UTF8);
writer.Formatting = Formatting.Indented;
doc.WriteTo (writer);
+ writer.Flush ();
+ writer.Close ();
dirty = false;
// notify dirty
return true;
More information about the Monodevelop-patches-list
mailing list