From d606ce01709e68b86fca2c76532d676bd395c9f3 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Thu, 2 Jan 2014 13:47:36 -0700 Subject: [PATCH] MeasureString: Correctly convert strings to floating-point numbers instead of integers only --- Library/MeasureString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/MeasureString.cpp b/Library/MeasureString.cpp index 19a3394e..222d289c 100644 --- a/Library/MeasureString.cpp +++ b/Library/MeasureString.cpp @@ -54,7 +54,7 @@ void MeasureString::ReadOptions(ConfigParser& parser, const WCHAR* section) */ void MeasureString::UpdateValue() { - m_Value = (double)_wtoi(m_String.c_str()); + m_Value = std::stod(m_String); } /*