From ba7e7ba85de3f6ac6c9676256f010788c28b88ad Mon Sep 17 00:00:00 2001 From: pip Date: Mon, 21 Feb 2011 11:17:30 +0000 Subject: [PATCH] Check for error returned from homelocation util. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2828 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp b/ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp index 677caef55..656ca9c69 100644 --- a/ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/opmap/opmapgadgetwidget.cpp @@ -2399,7 +2399,8 @@ void OPMapGadgetWidget::setHomeLocationObject() LLA[1] = home_position.coord.Lng(); LLA[2] = home_position.altitude; - Utils::HomeLocationUtil().getDetails(LLA, ECEF, RNE, Be); + if (Utils::HomeLocationUtil().getDetails(LLA, ECEF, RNE, Be) < 0) + return; // error // ****************** // save the new home location details