mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 14:44:19 -06:00
Fixed two more locales-related issues
One warning was also fixed
This commit is contained in:
parent
8e75919948
commit
1f29a2593b
4 changed files with 4 additions and 3 deletions
|
@ -178,7 +178,7 @@ private:
|
|||
auto it_val = it->second.find(parameter_name);
|
||||
if (it_val == it->second.end())
|
||||
return false;
|
||||
out = T(::atof(it_val->second.c_str()));
|
||||
out = T(string_to_double_decimal_point(it_val->second));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -1494,6 +1494,7 @@ Transformation Transformation::volume_to_bed_transformation(const Transformation
|
|||
// For parsing a transformation matrix from 3MF / AMF.
|
||||
Transform3d transform3d_from_string(const std::string& transform_str)
|
||||
{
|
||||
assert(is_decimal_separator_point()); // for atof
|
||||
Transform3d transform = Transform3d::Identity();
|
||||
|
||||
if (!transform_str.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue