1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

LP-10 Fix unitialized variable warning

This commit is contained in:
Stefan Karlsson 2015-07-12 17:28:48 +02:00
parent 257629dc3e
commit 162dde2677

View File

@ -390,7 +390,8 @@ void ScopeGadgetWidget::addCurvePlot(QString objectName, QString fieldPlusSubFie
plotData = new SequentialPlotData(object, field, element, scaleFactor,
meanSamples, mathFunction, m_plotDataSize,
pen, antialiased);
} else if (m_plotType == ChronoPlot) {
} else {
Q_ASSERT(m_plotType == ChronoPlot);
plotData = new ChronoPlotData(object, field, element, scaleFactor,
meanSamples, mathFunction, m_plotDataSize,
pen, antialiased);