From 8af73de90a9b1d1be58bbd2956066a9182d3bdc4 Mon Sep 17 00:00:00 2001 From: kintel Date: Sat, 26 Jun 2010 16:17:34 +0000 Subject: Applied comma radix bugfix by jmarsden git-svn-id: http://svn.clifford.at/openscad/trunk@560 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/src/export.cc b/src/export.cc index 40573c5..87916c4 100644 --- a/src/export.cc +++ b/src/export.cc @@ -83,6 +83,8 @@ void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog * typedef CGAL_Polyhedron::Facet_const_iterator FCI; typedef CGAL_Polyhedron::Halfedge_around_facet_const_circulator HFCC; + setlocale(LC_NUMERIC, "C"); // Ensure radix is . (not ,) in output + FILE *f = fopen(filename.toUtf8().data(), "w"); if (!f) { PRINTA("Can't open STL file \"%1\" for STL export: %2", @@ -142,6 +144,7 @@ void export_stl(CGAL_Nef_polyhedron *root_N, QString filename, QProgressDialog * fprintf(f, "endsolid OpenSCAD_Model\n"); fclose(f); + setlocale(LC_NUMERIC, ""); // Set default locale } void export_off(CGAL_Nef_polyhedron*, QString, QProgressDialog*) -- cgit v0.10.1