Author: lluis Date: 2008-01-18 06:03:09 -0500 (Fri, 18 Jan 2008) New Revision: 93241
Modified: branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/ChangeLog branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/DockObject.cs Log: 2008-01-18 Lluis Sanchez Gual <[EMAIL PROTECTED]> * DockObject.cs: Use invariant locale to store doubles. Fixes bug #354567. Modified: branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/ChangeLog =================================================================== --- branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/ChangeLog 2008-01-18 11:03:08 UTC (rev 93240) +++ branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/ChangeLog 2008-01-18 11:03:09 UTC (rev 93241) @@ -1,3 +1,7 @@ +2008-01-18 Lluis Sanchez Gual <[EMAIL PROTECTED]> + + * DockObject.cs: Use invariant locale to store doubles. Fixes bug #354567. + 2008-01-15 Michael Hutchinson <[EMAIL PROTECTED]> * layout.glade: Fix typo. Modified: branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/DockObject.cs =================================================================== --- branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/DockObject.cs 2008-01-18 11:03:08 UTC (rev 93240) +++ branches/monodevelop/main/1.0/src/core/MonoDevelop.Dock/DockObject.cs 2008-01-18 11:03:09 UTC (rev 93241) @@ -32,6 +32,7 @@ using System; using System.Xml; using Gtk; +using System.Globalization; namespace MonoDevelop.Components.Docking { @@ -229,18 +230,18 @@ internal virtual void Write (XmlWriter writer) { - writer.WriteAttributeString ("size", size.ToString ()); - writer.WriteAttributeString ("prefSize", prefSize.ToString ()); - writer.WriteAttributeString ("defaultHorSize", defaultHorSize.ToString ()); - writer.WriteAttributeString ("defaultVerSize", defaultVerSize.ToString ()); + writer.WriteAttributeString ("size", size.ToString (CultureInfo.InvariantCulture)); + writer.WriteAttributeString ("prefSize", prefSize.ToString (CultureInfo.InvariantCulture)); + writer.WriteAttributeString ("defaultHorSize", defaultHorSize.ToString (CultureInfo.InvariantCulture)); + writer.WriteAttributeString ("defaultVerSize", defaultVerSize.ToString (CultureInfo.InvariantCulture)); } internal virtual void Read (XmlReader reader) { - size = double.Parse (reader.GetAttribute ("size")); - prefSize = double.Parse (reader.GetAttribute ("prefSize")); - defaultHorSize = double.Parse (reader.GetAttribute ("defaultHorSize")); - defaultVerSize = double.Parse (reader.GetAttribute ("defaultVerSize")); + size = double.Parse (reader.GetAttribute ("size"), CultureInfo.InvariantCulture); + prefSize = double.Parse (reader.GetAttribute ("prefSize"), CultureInfo.InvariantCulture); + defaultHorSize = double.Parse (reader.GetAttribute ("defaultHorSize"), CultureInfo.InvariantCulture); + defaultVerSize = double.Parse (reader.GetAttribute ("defaultVerSize"), CultureInfo.InvariantCulture); } public virtual void CopyFrom (DockObject ob) _______________________________________________ Mono-patches maillist - Mono-patches@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-patches