[banshee] [EqualizerSetting] Use InvariantCulture for float values (bgo#611393)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [EqualizerSetting] Use InvariantCulture for float values (bgo#611393)
- Date: Mon, 1 Mar 2010 00:39:55 +0000 (UTC)
commit d885c9952b37c90328da99e53659ca7b021287eb
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Mon Mar 1 11:28:43 2010 +1100
[EqualizerSetting] Use InvariantCulture for float values (bgo#611393)
.../Banshee.Equalizer/EqualizerSetting.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerSetting.cs b/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerSetting.cs
index d41bb68..c3425c9 100644
--- a/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerSetting.cs
+++ b/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerSetting.cs
@@ -29,6 +29,7 @@
using System;
using System.Collections.Generic;
+using System.Globalization;
using Banshee.MediaEngine;
using Banshee.ServiceStack;
@@ -159,11 +160,11 @@ namespace Banshee.Equalizer
builder.AppendLine ();
builder.AppendFormat (" \"name\": \"{0}\",", Name.Replace ("\"", "\\\""));
builder.AppendLine ();
- builder.AppendFormat (" \"preamp\": {0},", AmplifierLevel);
+ builder.AppendFormat (CultureInfo.InvariantCulture, " \"preamp\": {0},", AmplifierLevel);
builder.AppendLine ();
builder.Append (" \"bands\": [ ");
for (uint band = 0; band < bands.Length; band++) {
- builder.Append (bands[band]);
+ builder.Append (bands[band].ToString (CultureInfo.InvariantCulture));
if (band < bands.Length - 1) {
builder.Append (", ");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]