summaryrefslogtreecommitdiff
path: root/src/export.cc
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-06-26 16:17:34 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-06-26 16:17:34 (GMT)
commit8af73de90a9b1d1be58bbd2956066a9182d3bdc4 (patch)
treec23084361c9fcf90533065b5073bf23aa234a15a /src/export.cc
parent0aee90946946191cf3a8d476f4c7c3dd7bd6265e (diff)
Applied comma radix bugfix by jmarsden
git-svn-id: http://svn.clifford.at/openscad/trunk@560 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/export.cc')
-rw-r--r--src/export.cc3
1 files changed, 3 insertions, 0 deletions
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*)
contact: Jan Huwald // Impressum