mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fix build
This commit is contained in:
parent
6629d75853
commit
b950e9e575
4 changed files with 24 additions and 10 deletions
|
@ -275,10 +275,7 @@ void GLGizmoBase::set_tooltip(const std::string& tooltip) const
|
|||
|
||||
std::string GLGizmoBase::format(float value, unsigned int decimals) const
|
||||
{
|
||||
size_t needed_size = std::snprintf(nullptr, 0, "%.*f", decimals, value);
|
||||
std::string res(needed_size, '\0');
|
||||
std::snprintf(&res.front(), res.size(), "%.*f", decimals, value);
|
||||
return res;
|
||||
return Slic3r::string_printf("%.*f", decimals, value);
|
||||
}
|
||||
|
||||
const float GLGizmoRotate::Offset = 5.0f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue