From 957a2bf95fed2362d50de64721642dbc0bd8f911 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 20 Oct 2017 06:26:17 +0200 Subject: options, migration: simplify --- migration/20171020_00-max-pitch-output.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'migration') diff --git a/migration/20171020_00-max-pitch-output.cpp b/migration/20171020_00-max-pitch-output.cpp index e7ed474a..a5467b28 100644 --- a/migration/20171020_00-max-pitch-output.cpp +++ b/migration/20171020_00-max-pitch-output.cpp @@ -37,7 +37,7 @@ struct max_pitch_output : migration bundle b = make_bundle("opentrack-mappings"); - if (b->contains(name) && b->get(name) != QVariant::Invalid) + if (b->contains(name)) return false; } @@ -51,9 +51,9 @@ struct max_pitch_output : migration for (const spline& spl : { pitch_spline_1, pitch_spline_2 }) for (QPointF& point : spl.get_points()) if (point.y() - 1e-2 > 90) - return false; + return true; - return true; + return false; } void run() override @@ -61,7 +61,7 @@ struct max_pitch_output : migration main_settings s; axis_opts& pitch_opts = s.a_pitch; - pitch_opts.clamp_y = axis_opts::o_r90; + pitch_opts.clamp_y = axis_opts::o_r180; s.b_map->save(); } -- cgit v1.2.3