mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-24 05:43:12 +08:00
Fix for:
../src/slic3r/GUI/IconManager.cpp:38:57: error: 'fabs' is not a member of 'std'; did you mean 'abs'? 38 | unsigned int width = static_cast<unsigned int>(std::fabs(std::round(size.x))); | ^~~~ | abs ../src/slic3r/GUI/IconManager.cpp:38:67: error: 'round' is not a member of 'std'; did you mean 'std::chrono::round'? 38 | unsigned int width = static_cast<unsigned int>(std::fabs(std::round(size.x))); | ^~~~~
This commit is contained in:
parent
08b8bc447a
commit
8e8c5652b9
@ -1,5 +1,5 @@
|
||||
#include "IconManager.hpp"
|
||||
|
||||
#include <cmath>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
using namespace Slic3r::GUI;
|
||||
@ -35,7 +35,7 @@ std::vector<IconManager::Icons> IconManager::init(const std::vector<std::string>
|
||||
// only rectangle are supported
|
||||
assert(size.x == size.y);
|
||||
// no subpixel supported
|
||||
unsigned int width = static_cast<unsigned int>(std::fabs(std::round(size.x)));
|
||||
unsigned int width = static_cast<unsigned int>(std::abs(std::round(size.x)));
|
||||
assert(size.x == static_cast<float>(width));
|
||||
|
||||
// state order has to match the enum IconState
|
||||
|
Loading…
x
Reference in New Issue
Block a user