diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:12:04 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-26 17:19:20 +0200 |
commit | 413834ae826a87edcfa986561ed7bfcee6d84442 (patch) | |
tree | 358ca96d17bf2d564d806bea5c02656f5a14c49e /spline-widget/functionconfig.cpp | |
parent | d7f71f721449853efa88479035c7139898a2a6a5 (diff) |
spline-widget: make `max x' inclusive
Diffstat (limited to 'spline-widget/functionconfig.cpp')
-rw-r--r-- | spline-widget/functionconfig.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp index 9b4ba1b6..03a48b3f 100644 --- a/spline-widget/functionconfig.cpp +++ b/spline-widget/functionconfig.cpp @@ -288,6 +288,6 @@ void Map::saveSettings(QSettings& settings, const QString& title) { int Map::precision() const { if (cur.input.size()) - return value_count / std::max<float>(1.f, (cur.input[cur.input.size() - 1].x())); + return (value_count-1) / std::max<float>(1.f, (cur.input[cur.input.size() - 1].x())); return 1; } |