From 413834ae826a87edcfa986561ed7bfcee6d84442 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 26 May 2016 17:12:04 +0200 Subject: spline-widget: make `max x' inclusive --- spline-widget/functionconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spline-widget') 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(1.f, (cur.input[cur.input.size() - 1].x())); + return (value_count-1) / std::max(1.f, (cur.input[cur.input.size() - 1].x())); return 1; } -- cgit v1.2.3