Merge pull request #3 from chrik5/master

fix: empty image_tag list before copy new tags
This commit is contained in:
Boucman
2014-12-23 18:39:47 +01:00

View File

@@ -26,10 +26,12 @@ dt.configuration.check_version(...,{2,0,0})
local image_tags = {}
local function mcopy_tags()
local sel_images = dt.gui.selection()
local tag_list_tmp = {}
local hash = {}
local sel_images = dt.gui.selection()
local tag_list_tmp = {}
local hash = {}
-- empty tag table before copy new tags
image_tags = {}
for _,image in ipairs(sel_images) do
local image_tags_tmp = {}
image_tags_tmp = dt.tags.get_tags(image)