diff options
author | Vaxry <[email protected]> | 2024-05-10 12:58:53 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-05-10 12:59:01 +0100 |
commit | 38911d6df4977b6b00557cc887eb151d032e505b (patch) | |
tree | 20402598b1c667829ee0a947515788554c298e74 | |
parent | 37a84c5223279ce16152db69fba204df365c4eda (diff) | |
download | Hyprland-38911d6df4977b6b00557cc887eb151d032e505b.tar.gz Hyprland-38911d6df4977b6b00557cc887eb151d032e505b.zip |
box: fix noNegativeSize
-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; } |