Fix:Core:Make vehicle profile order as it appears in xml file
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 6 May 2012 16:07:47 +0000 (16:07 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 6 May 2012 16:07:47 +0000 (16:07 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5082 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index c9572d7..440df36 100644 (file)
@@ -2803,7 +2803,7 @@ navit_add_attr(struct navit *this_, struct attr *attr)
                ret=navit_add_vehicle(this_, attr->u.vehicle);
                break;
        case attr_vehicleprofile:
-               this_->vehicleprofiles=g_list_prepend(this_->vehicleprofiles, attr->u.vehicleprofile);
+               this_->vehicleprofiles=g_list_append(this_->vehicleprofiles, attr->u.vehicleprofile);
                break;
        case attr_autozoom_min:
                this_->autozoom_min = attr->u.num;