]> git.mxchange.org Git - flightgear.git/commitdiff
ignore spaces after the colon in "@insert 3: ebase"
authormfranz <mfranz>
Mon, 8 May 2006 14:53:23 +0000 (14:53 +0000)
committermfranz <mfranz>
Mon, 8 May 2006 14:53:23 +0000 (14:53 +0000)
src/Autopilot/route_mgr.cxx

index 654976e1dcd94be3ddbb7761bf83c0cf00f86b3e..de42860f223d5bd24dde828b98117bbeb6fb4a92 100644 (file)
@@ -383,7 +383,11 @@ void FGRouteMgr::Listener::valueChanged(SGPropertyNode *prop)
     else if (!strncmp(s, "@insert", 7)) {
         char *r;
         int pos = strtol(s + 7, &r, 10);
-        if (*r++ == ':' && *r)
+        if (*r++ != ':')
+            return;
+        while (isspace(*r))
+            r++;
+        if (*r)
             mgr->new_waypoint(r, pos);
     } else
         mgr->new_waypoint(s);