diff --git a/src/Mod/Path/App/Command.cpp b/src/Mod/Path/App/Command.cpp index 9e3762e66..59efef53e 100644 --- a/src/Mod/Path/App/Command.cpp +++ b/src/Mod/Path/App/Command.cpp @@ -34,7 +34,6 @@ #include #include #include "Command.h" -#include using namespace Base; using namespace Path; @@ -132,12 +131,9 @@ std::string Command::toGCode (void) const std::stringstream str; str.precision(5); str << Name; - char v[60]; for(std::map::const_iterator i = Parameters.begin(); i != Parameters.end(); ++i) { std::string k = i->first; - //std::string v = std::to_string(i->second); // only 6 digits - snprintf(v, sizeof(v), "%.9f", i->second); - v[sizeof(v)-1] = '\0'; + std::string v = std::to_string(i->second); str << " " << k << v; } return str.str();