Bug 297490 - Copy tags when creating a new version
Summary: Copy tags when creating a new version
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Versioning (show other bugs)
Version: 2.6.0
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-04 19:11 UTC by Roland G.
Modified: 2022-02-02 05:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.6.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland G. 2012-04-04 19:11:40 UTC
When creating a new version of an image, the rating etc. is copied over from the original one. The tags however, are not. It would make more sense if they would, since after applying a simple transformation (contrast, rotation) it is currently necessary to re-apply all the tags.
Comment 1 caulier.gilles 2012-04-04 19:38:46 UTC
I confirm this dysfunction. Tags are not copied from original to a new version...
Comment 2 Marcel Wiesweg 2012-04-22 20:08:10 UTC
Git commit 4918e135ef681e8d2f56cc8a2705d05880914497 by Marcel Wiesweg.
Committed on 22/04/2012 at 18:53.
Pushed by mwiesweg into branch 'master'.

Consolidate code for copying attributes in CollectionScanner and fix copying of tags.

Tags cannot simply be copied at the lowest level: The SQL fails in case tags
are already set, but much more important: internal tags such as history tags
must not be copied. Use TagsCache and ImageInfo facilities to copy tags properly.

M  +51   -3    libs/database/collectionscanner.cpp
M  +6    -6    libs/database/collectionscanner.h
M  +11   -37   libs/database/imagescanner.cpp
M  +0    -5    libs/database/imagescanner.h

http://commits.kde.org/digikam/4918e135ef681e8d2f56cc8a2705d05880914497