From 7a463f4fea2036321ec8b71396bd84c524eff20e Mon Sep 17 00:00:00 2001 From: Bryant Date: Fri, 26 Apr 2013 12:27:13 -0700 Subject: [PATCH] Fixed crash in QGCRemoteControlView.cc when a UAV is connected, but not RADIO_CONTROL packet has been received. --- src/ui/QGCRemoteControlView.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/QGCRemoteControlView.cc b/src/ui/QGCRemoteControlView.cc index efeabc63b..1825a4dc6 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; -- 2.22.0