Commit 304b3999 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #258 from Susurrus/rc_crash_fix

Fixed crash in QGCRemoteControlView.cc.
parents 4019d95a 7a463f4f
......@@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw()
if(isVisible() && updated)
{
// Update percent bars and raw labels
for(int i = 0; (i < progressBars.count()) && (i < rawLabels.count()) && (i < normalized.count()); i++)
for(int i = 0; (i < progressBars.count()) && (i < rawLabels.count()) && (i < normalized.count()) && (i < raw.count()); i++)
{
rawLabels.at(i)->setText(QString("%1 us").arg(raw.at(i), 4, 10, QChar('0')));
int vv = normalized.at(i)*100.0f;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment