Skip to content

Conversation

wpferguson
Copy link
Member

return nil (empty table) for non-existent tag or tag with no tagged images

Fixes #19461

Test script

test_tag_image.zip

I tested on a new install and create a tag before importing any images. The test script tries to access tag at row -1, which doesn't exist. Next it accesses the tag at row 1 and attempts to find any images with that tag (which should be none). Or, you can trust that I tested it :-D

@wpferguson wpferguson added bugfix pull request fixing a bug lua labels Oct 5, 2025
@TurboGit TurboGit added this to the 5.4 milestone Oct 5, 2025
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@TurboGit TurboGit merged commit c5ae459 into darktable-org:master Oct 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix pull request fixing a bug lua
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iteration over dt_lua_tag_t with ipairs() in a Lua script fails with error "incorrect index in database"
2 participants