From 716bb8ec561f1fa9467e1a89623bd95e90bfdd8d Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Thu, 15 Dec 2011 23:49:01 +0100 Subject: [PATCH] GCS:Scope: Backward Compatibility: Set Interpolation to minimum (1) when not set in config file --- .../openpilotgcs/src/plugins/scope/scopegadgetconfiguration.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ground/openpilotgcs/src/plugins/scope/scopegadgetconfiguration.cpp b/ground/openpilotgcs/src/plugins/scope/scopegadgetconfiguration.cpp index 6337be38f..3228497f3 100644 --- a/ground/openpilotgcs/src/plugins/scope/scopegadgetconfiguration.cpp +++ b/ground/openpilotgcs/src/plugins/scope/scopegadgetconfiguration.cpp @@ -66,6 +66,7 @@ ScopeGadgetConfiguration::ScopeGadgetConfiguration(QString classId, QSettings* q plotCurveConf->color = color; plotCurveConf->yScalePower = qSettings->value("yScalePower").toInt(); plotCurveConf->yInterpolationSamples = qSettings->value("yInterpolationSamples").toInt(); + if (!plotCurveConf->yInterpolationSamples) plotCurveConf->yInterpolationSamples = 1; // fallback for backward compatibility with earlier versions plotCurveConf->yMinimum = qSettings->value("yMinimum").toDouble(); plotCurveConf->yMaximum = qSettings->value("yMaximum").toDouble();