diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-14 04:55:19 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-14 04:55:19 (GMT) |
commit | d5019a964e376e8ad0ad398cc4cfb3d97509402d (patch) | |
tree | 0cb9b316ff1aff9a7befec2b6630f93746776d1b /src/value.cc | |
parent | c1b1d0992f78ecafb4212994207ee7cc7cbb6b39 (diff) |
deal with test suite issues under mingw-cross compile and wine
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/value.cc b/src/value.cc index 7744a18..98a7eca 100644 --- a/src/value.cc +++ b/src/value.cc @@ -25,6 +25,7 @@ */ #include "value.h" +#include "printutils.h" #include <stdio.h> #include <math.h> #include <assert.h> @@ -197,6 +198,7 @@ public: if (dotpos != std::string::npos) { if (tmpstr.size() - dotpos > 12) tmpstr.erase(dotpos + 12); } + tmpstr = two_digit_exp_format( tmpstr ); return tmpstr; #else // attempt to emulate Qt's QString.sprintf("%g"); from old OpenSCAD. |