]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
Fix profile and average depth for freedives
[ext/subsurface.git] / parse-xml.c
index 00538dad93a07f5dc15897a7467eb5b86c5b2a4b..5159a334f9153f65b010f0e1cf5c4845cebcf530 100644 (file)
@@ -41,7 +41,7 @@ void record_dive(struct dive *dive)
 
 void record_trip(struct dive *trip)
 {
-       dive_trip_list = INSERT_TRIP(trip, dive_trip_list);
+       dive_trip_list = insert_trip(trip, dive_trip_list);
 }
 
 static void delete_dive_renumber(struct dive **dives, int i, int nr)
@@ -1480,8 +1480,8 @@ void parse_xml_buffer(const char *url, const char *buffer, int size, GError **er
                }
                return;
        }
-       /* we assume that the last (or only) filename passed as argument is a 
-        * great filename to use as default when saving the dives */ 
+       /* we assume that the last (or only) filename passed as argument is a
+        * great filename to use as default when saving the dives */
        set_filename(url);
        reset_all();
        dive_start();