diff options
-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; } |