Browse Source

Merge pull request #258 from Susurrus/rc_crash_fix

Fixed crash in QGCRemoteControlView.cc.
QGC4.4
Lorenz Meier 12 years ago
parent
commit
304b399996
  1. 2
      src/ui/QGCRemoteControlView.cc

2
src/ui/QGCRemoteControlView.cc

@ -200,7 +200,7 @@ void QGCRemoteControlView::redraw() @@ -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;

Loading…
Cancel
Save