diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 06:26:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 06:26:17 +0200 |
commit | 957a2bf95fed2362d50de64721642dbc0bd8f911 (patch) | |
tree | 452d6d3f2d2c650cf463b278a1cd13729ea1295c /migration | |
parent | 1f6ca4d1ded3146f1e358007528d9f1ab2b522ec (diff) |
options, migration: simplify
Diffstat (limited to 'migration')
-rw-r--r-- | migration/20171020_00-max-pitch-output.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<QVariant>(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(); } |