src/file.cpp

changeset 308
4e2425bd4dc7
parent 298
f945fc8dae9e
child 309
11ec6aa1f1fb
--- a/src/file.cpp	Thu Jun 27 14:55:32 2013 +0300
+++ b/src/file.cpp	Mon Jul 01 17:27:37 2013 +0300
@@ -570,15 +570,11 @@
 // =============================================================================
 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 // =============================================================================
-static vertex parseVertex (QStringList& s, const ushort n) {
-	// Disable the locale while parsing the line or atof's behavior changes
-	// between locales (i.e. fails to read decimals properly). That is
-	// quite undesired...
-	setlocale (LC_NUMERIC, "C");
-	
+static vertex parseVertex( QStringList& s, const ushort n )
+{
 	vertex v;
-	for (const Axis ax : g_Axes)
-		v[ax] = s[n + ax].toFloat ();
+	for( const Axis ax : g_Axes )
+		v[ax] = atof( s[n + ax] );
 	
 	return v;
 }

mercurial