From 2706a3d81c602a6f55857b4f1591a4e080d8a642 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 9 Jun 2014 22:51:39 +0200 Subject: [PATCH] #1237 - Curves tab initialization bug (all boards except Taranis) --- companion/src/modeledit/curves.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/companion/src/modeledit/curves.cpp b/companion/src/modeledit/curves.cpp index 72657d9ef..20817a67c 100644 --- a/companion/src/modeledit/curves.cpp +++ b/companion/src/modeledit/curves.cpp @@ -246,12 +246,13 @@ void Curves::updateCurveType() index = model.curves[currentCurve].count - 2; } else { + ui->curveSmooth->hide(); if (model.curves[currentCurve].count == 5) - index += 2; + index = 1; else if (model.curves[currentCurve].count == 9) - index += 4; + index = 2; else if (model.curves[currentCurve].count == 17) - index += 6; + index = 3; } ui->curvePoints->setCurrentIndex(index);