aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-05-10 12:58:53 +0100
committerVaxry <[email protected]>2024-05-10 12:59:01 +0100
commit38911d6df4977b6b00557cc887eb151d032e505b (patch)
tree20402598b1c667829ee0a947515788554c298e74
parent37a84c5223279ce16152db69fba204df365c4eda (diff)
downloadHyprland-38911d6df4977b6b00557cc887eb151d032e505b.tar.gz
Hyprland-38911d6df4977b6b00557cc887eb151d032e505b.zip
box: fix noNegativeSize
-rw-r--r--src/helpers/Box.cpp4
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;
}