@@ -167,7 +167,7 @@ local function get_first_coordinate()
167
167
first_elevation = ' '
168
168
first_image_date = 0
169
169
170
- for _ ,image in ipairs (sel_images ) do
170
+ for jj ,image in ipairs (sel_images ) do
171
171
if not image then
172
172
first_have_data = false
173
173
else
@@ -206,7 +206,7 @@ local function get_second_coordinate()
206
206
second_elevation = ' '
207
207
second_image_date = 0
208
208
209
- for _ ,image in ipairs (sel_images ) do
209
+ for jj ,image in ipairs (sel_images ) do
210
210
if not image then
211
211
second_have_data = false
212
212
else
@@ -242,7 +242,7 @@ local calc_in_between_slider = dt.new_widget("slider")
242
242
-- ToDo: this needs more love
243
243
local function calc_in_between ()
244
244
local sel_images = dt .gui .action_images
245
- for _ ,image in ipairs (sel_images ) do
245
+ for jj ,image in ipairs (sel_images ) do
246
246
if image then
247
247
image_date = make_time_stamp (image .exif_datetime_taken )
248
248
if (first_have_data and second_have_data ) then
@@ -289,7 +289,7 @@ local function copy_gps()
289
289
copy_gps_longitude = ' '
290
290
copy_gps_elevation = ' '
291
291
292
- for _ ,image in ipairs (sel_images ) do
292
+ for jj ,image in ipairs (sel_images ) do
293
293
if not image then
294
294
copy_gps_have_data = false
295
295
else
316
316
local function paste_gps (image )
317
317
local sel_images = dt .gui .action_images
318
318
319
- for _ ,image in ipairs (sel_images ) do
319
+ for jj ,image in ipairs (sel_images ) do
320
320
if (label_copy_gps_lat .value ) then
321
321
image .latitude = copy_gps_latitude
322
322
end
@@ -343,7 +343,7 @@ local function open_location_in_gnome_maps()
343
343
local i = 0 ;
344
344
345
345
-- Use the first image with geo information
346
- for _ ,image in ipairs (sel_images ) do
346
+ for jj ,image in ipairs (sel_images ) do
347
347
if ((image .longitude and image .latitude ) and
348
348
(image .longitude ~= 0 and image .latitude ~= 90 ) -- Sometimes the north-pole but most likely just wrong data
349
349
) then
@@ -386,7 +386,7 @@ local function reverse_geocode()
386
386
local i = 0 ;
387
387
388
388
-- Use the first image with geo information
389
- for _ ,image in ipairs (sel_images ) do
389
+ for jj ,image in ipairs (sel_images ) do
390
390
if ((image .longitude and image .latitude ) and
391
391
(image .longitude ~= 0 and image .latitude ~= 90 ) -- Sometimes the north-pole but most likely just wrong data
392
392
) then
@@ -461,7 +461,7 @@ local function calc_distance()
461
461
462
462
local sel_images = dt .gui .selection ()
463
463
464
- for _ ,image in ipairs (sel_images ) do
464
+ for jj ,image in ipairs (sel_images ) do
465
465
if ((image .longitude and image .latitude ) and
466
466
(image .longitude ~= 0 and image .latitude ~= 90 ) -- Sometimes the north-pole but most likely just wrong data
467
467
) then
@@ -545,7 +545,7 @@ local function altitude_profile()
545
545
local elevationAdd = 0 ;
546
546
547
547
local sel_images = dt .gui .action_images
548
- for _ ,image in ipairs (sel_images ) do
548
+ for jj ,image in ipairs (sel_images ) do
549
549
if ((not isnan (image .longitude ) and not isnan (image .latitude ) and not isnan (image .elevation ) and image .elevation ) and
550
550
(image .longitude ~= 0 and image .latitude ~= 90 ) -- Sometimes the north-pole but most likely just wrong data
551
551
) then
0 commit comments