From 99e1141446bab89ca211d1aa787a5e15be8b8412 Mon Sep 17 00:00:00 2001 From: supertobi Date: Thu, 12 Jan 2017 13:27:29 +0100 Subject: [PATCH] dt.database -> dt.collection select only images in the collection, not in the database --- contrib/geoToolbox.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/geoToolbox.lua b/contrib/geoToolbox.lua index c01ae87..7b69131 100644 --- a/contrib/geoToolbox.lua +++ b/contrib/geoToolbox.lua @@ -63,9 +63,9 @@ local function select_with_gps() local selection = {} job = dt.gui.create_job(_("GPS selection"), true, stop_selection) - for key,image in ipairs(dt.database) do + for key,image in ipairs(dt.collection) do if job.valid then - job.percent = (key-1)/#dt.database + job.percent = (key-1)/#dt.collection if (image.longitude and image.latitude) then table.insert(selection,image) @@ -83,9 +83,9 @@ local function select_without_gps() local selection = {} job = dt.gui.create_job(_("GPS selection"), true, stop_selection) - for key,image in ipairs(dt.database) do + for key,image in ipairs(dt.collection) do if job.valid then - job.percent = (key-1)/#dt.database + job.percent = (key-1)/#dt.collection if (not image.longitude and not image.latitude) then table.insert(selection,image)