From 7cd3e9bcc2a79500b60d33973414acbc7a1b57c2 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 22 Sep 2007 15:31:53 +0000 Subject: WinGUI: - Fix for Non english language systems that use floats with a , instead of . Thanks go to loshadi for providing this better fix for the issue. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@979 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Parsing/Title.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'win/C#/Parsing/Title.cs') diff --git a/win/C#/Parsing/Title.cs b/win/C#/Parsing/Title.cs index 16c032edf..744e5b619 100644 --- a/win/C#/Parsing/Title.cs +++ b/win/C#/Parsing/Title.cs @@ -85,11 +85,11 @@ namespace Handbrake.Parsing } } - private string m_aspectRatio; + private float m_aspectRatio; /// /// The aspect ratio of this Title /// - public string AspectRatio + public float AspectRatio { get { @@ -192,8 +192,7 @@ namespace Handbrake.Parsing if (m.Success) { thisTitle.m_resolution = new Size(int.Parse(m.Groups[1].Value), int.Parse(m.Groups[2].Value)); - thisTitle.m_aspectRatio = m.Groups[3].ToString(); // Converted to a String from float. Caused issue on french systems - // French system floats are 1,78 not 1.78 and the CLI always outputs a . + thisTitle.m_aspectRatio = float.Parse(m.Groups[3].Value, Functions.CLI.Culture); } } catch (Exception exc) -- cgit v1.2.3