[Digikam-devel] [Bug 274555] Digikam crashes while histogram computation

Marcel Wiesweg marcel.wiesweg at gmx.de
Tue Oct 2 20:49:00 BST 2012


https://bugs.kde.org/show_bug.cgi?id=274555

--- Comment #40 from Marcel Wiesweg <marcel.wiesweg at gmx.de> ---
We are safe that the data will not be deleted (a reference is kept, and data is
deleted only when the last reference is dropped)
 But we should be aware of a difference: DImg is explicitly shared, in contrast
to implicitly shared classes like QString, QImage. That means a change to one
copy of an image does not detach this copy, instead, the change will affect all
shared instances.
So, if e.g. the image editor gives the DImg to the sidebar, and then the data
of the editor's main DImg is changed or resized, a shallow copy in the
histogram will be immediately affected. This can lead to crashes, or can be
safe, depending on the terms of use.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list