[mapguide-commits] r5827 -
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/SchemaOverrides
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Fri May 20 10:08:42 EDT 2011
Author: jng
Date: 2011-05-20 07:08:41 -0700 (Fri, 20 May 2011)
New Revision: 5827
Modified:
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/SchemaOverrides/GdalRasterItem.cs
Log:
#1679: Always use CultureInfo.InvariantCulture when dealing with double -> string conversion as we don't want locale-specific formatting to end up in the XML document.
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/SchemaOverrides/GdalRasterItem.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/SchemaOverrides/GdalRasterItem.cs 2011-05-20 14:02:25 UTC (rev 5826)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/SchemaOverrides/GdalRasterItem.cs 2011-05-20 14:08:41 UTC (rev 5827)
@@ -24,6 +24,7 @@
using System.IO;
using OSGeo.MapGuide.ObjectModels.Common;
using OSGeo.MapGuide.ObjectModels;
+using System.Globalization;
namespace OSGeo.MapGuide.MaestroAPI.SchemaOverrides
{
@@ -145,7 +146,7 @@
img.Attributes.Append(imgName);
{
var bounds = doc.CreateElement("Bounds");
- bounds.InnerXml = string.Format("<MinX>{0}</MinX><MinY>{1}</MinY><MaxX>{2}</MaxX><MaxY>{3}</MaxY>", this.MinX, this.MinY, this.MaxX, this.MaxY);
+ bounds.InnerXml = string.Format(CultureInfo.InvariantCulture, "<MinX>{0}</MinX><MinY>{1}</MinY><MaxX>{2}</MaxX><MaxY>{3}</MaxY>", this.MinX, this.MinY, this.MaxX, this.MaxY);
img.AppendChild(bounds);
}
More information about the mapguide-commits
mailing list