darktable-org/darktable — pull request #48 by fgrollier (2012-09-08 15:35:50+00:00)
Title: Fix the deletion of colorlabels when operating on a selection in lighttable.

This is a possible fix for the bug described here http://darktable.org/redmine/issues/8915

In more details: the problem lies in the fact that the `selected_images` table can contain multiple occurrences of the same `imgid`. This causes the insertion statement to fail because `PRIMARY KEY` is set on `cololabels_temp.imgid`.

I'm not familiar enough with darktable's inner workings to know if these duplicate entries in `selected_images` are normal or not. If not then it's there that the problem is really located and should be worked on, and this PR shouldn't be merged.