diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 08:52:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-18 08:52:34 +0200 |
commit | 7df7c40a5d5eaed89fb89445348c3c7cdc8632e9 (patch) | |
tree | 49633cc6d74f4f46bb1cd9057570c6b34baa64db /gui | |
parent | 39acca95501fa7b0d77f8e6d2cbf97f45cff4ebf (diff) |
many: use std::f{max,min} for floating-point values
Diffstat (limited to 'gui')
-rw-r--r-- | gui/mapping-window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/mapping-window.cpp b/gui/mapping-window.cpp index 71282d84..64e2dd48 100644 --- a/gui/mapping-window.cpp +++ b/gui/mapping-window.cpp @@ -96,7 +96,7 @@ void MapWidget::load() qfc.set_snap(1, 2.5); else { - const double x_snap = std::max(.5, conf.max_input() / 100.); + const double x_snap = std::fmax(.5, conf.max_input() / 100.); qfc.set_snap(x_snap, 1); } }); |