diff --git a/src/ui/QGCRemoteControlView.cc b/src/ui/QGCRemoteControlView.cc index efeabc63b1676b75184b76751cd98966f074ebe7..1825a4dc6b5a79bfcf6b393404d8389c36b63bb8 100644 --- a/src/ui/QGCRemoteControlView.cc +++ b/src/ui/QGCRemoteControlView.cc @@ -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;