diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 20:56:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-09-26 21:10:13 +0200 |
commit | d4d799cac8080d4066394f338c31611ae655d5f6 (patch) | |
tree | ff37ab02c0bc8aaf30f44ad4c217527df74a774f /spline/spline-widget.cpp | |
parent | cecd3f8a89693c5722b5e52baebb58edaef1a91c (diff) |
compat: use std::clamp, remove own version
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r-- | spline/spline-widget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 7aeaf590..9df9b3be 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -635,8 +635,8 @@ QPointF spline_widget::pixel_to_point(const QPointF& point) if (snap_y > 0) y = snap(y, snap_y); - x = clamp(x, 0, config->max_input()); - y = clamp(y, 0, config->max_output()); + x = std::clamp(x, 0., config->max_input()); + y = std::clamp(y, 0., config->max_output()); return { x, y }; } |