diff options
Diffstat (limited to 'src/helpers/Box.cpp')
-rw-r--r-- | src/helpers/Box.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp index 77406ecf..4b7f5726 100644 --- a/src/helpers/Box.cpp +++ b/src/helpers/Box.cpp @@ -115,8 +115,8 @@ CBox& CBox::expand(const double& value) { } CBox& CBox::noNegativeSize() { - std::clamp(w, 0.0, std::numeric_limits<double>::infinity()); - std::clamp(h, 0.0, std::numeric_limits<double>::infinity()); + w = std::clamp(w, 0.0, std::numeric_limits<double>::infinity()); + h = std::clamp(h, 0.0, std::numeric_limits<double>::infinity()); return *this; } |