1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Merged in filnet/librepilot/LP-561_fix_gcs_gadget_clone (pull request #482)

LP-561 fix gcs gadget clone

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
This commit is contained in:
Philippe Renon 2018-01-24 20:14:38 +00:00 committed by Lalanne Laurent
commit 0f186cad43
2 changed files with 4 additions and 1 deletions

View File

@ -82,6 +82,9 @@ PfdQmlGadgetConfiguration::PfdQmlGadgetConfiguration(QString classId, QSettings
PfdQmlGadgetConfiguration::PfdQmlGadgetConfiguration(const PfdQmlGadgetConfiguration &obj) :
IUAVGadgetConfiguration(obj.classId(), obj.parent())
{
m_speedMap = obj.m_speedMap;
m_altitudeMap = obj.m_altitudeMap;
m_qmlFile = obj.m_qmlFile;
m_speedFactor = obj.m_speedFactor;

View File

@ -75,7 +75,7 @@ ScopeGadgetConfiguration::ScopeGadgetConfiguration(const ScopeGadgetConfiguratio
m_mathFunctionType = obj.m_mathFunctionType;
m_refreshInterval = obj.m_refreshInterval;
int plotCurveCount = m_plotCurveConfigs.size();
int plotCurveCount = obj.m_plotCurveConfigs.size();
for (int i = 0; i < plotCurveCount; i++) {
PlotCurveConfiguration *currentPlotCurveConf = obj.m_plotCurveConfigs.at(i);