fix: empty image_tag list before copy new tags

This commit is contained in:
chrik5
2014-12-22 12:21:22 +01:00
parent 7d50c476c2
commit 9525af3dae

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)