]> git.street.me.uk Git - andy/viking.git/blobdiff - src/viktrwlayer_geotag.c
Fix maintaining a transparent background when an alpha value is applied to a pixbuf.
[andy/viking.git] / src / viktrwlayer_geotag.c
index bf6534720b51febb8df4e49ea5920a37cbc61080..c3dbed244b5c9a1009aa9d436051a3948bbcabe9 100644 (file)
@@ -333,7 +333,7 @@ static void trw_layer_geotag_process ( geotag_options_t *options )
                                        VikWaypoint *current_wp = vik_trw_layer_get_waypoint ( options->vtl, name );
                                        if ( current_wp ) {
                                                // Existing wp found, so set new position, comment and image
-                                               current_wp = a_geotag_waypoint_positioned ( options->image, wp->coord, wp->altitude, &name, current_wp );
+                                               (void)a_geotag_waypoint_positioned ( options->image, wp->coord, wp->altitude, &name, current_wp );
                                                updated_waypoint = TRUE;
                                        }
                                }
@@ -388,7 +388,7 @@ static void trw_layer_geotag_process ( geotag_options_t *options )
                                        VikWaypoint *wp = vik_trw_layer_get_waypoint ( options->vtl, name );
                                        if ( wp ) {
                                                // Found, so set new position, comment and image
-                                               wp = a_geotag_waypoint_positioned ( options->image, options->coord, options->altitude, &name, wp );
+                                               (void)a_geotag_waypoint_positioned ( options->image, options->coord, options->altitude, &name, wp );
                                                updated_waypoint = TRUE;
                                        }
                                        g_free ( name );
@@ -516,13 +516,14 @@ static void trw_layer_geotag_response_cb ( GtkDialog *dialog, gint resp, GeoTagW
                gchar *tmp = g_strdup_printf ( _("Geotagging %d Images..."), len );
 
                // Processing lots of files can take time - so run a background effort
-               a_background_thread ( VIK_GTK_WINDOW_FROM_LAYER(options->vtl),
-                                                         tmp,
-                                                         (vik_thr_func) trw_layer_geotag_thread,
-                                                         options,
-                                                         (vik_thr_free_func) trw_layer_geotag_thread_free,
-                                                         NULL,
-                                                         len );
+               a_background_thread ( BACKGROUND_POOL_LOCAL,
+                                     VIK_GTK_WINDOW_FROM_LAYER(options->vtl),
+                                     tmp,
+                                     (vik_thr_func) trw_layer_geotag_thread,
+                                     options,
+                                     (vik_thr_free_func) trw_layer_geotag_thread_free,
+                                     NULL,
+                                     len );
 
                g_free ( tmp );