Fix for crop tool crash
Cyrille Berger
cberger at cberger.net
Mon Aug 24 13:54:50 CEST 2009
Hi,
We discussed this on IRC. Here is the conclusion:
* paintdevice colorspaces belongs to the paintdevice, therefor they have a
short/unpredictable life expectency, you should only use them as long as you
are certain that the paintdevice won't be deleted
* if you need to keep a pointer of the color space (like in a KoColor), you
need to ask the KoColorSpaceRegistry for a permanent colorspace (see the
permanentColorspace function)
In this case, since it's a property of the layer. Storing the id/name in the
model would be the way to go.
--
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20090824/68930e65/attachment.htm
More information about the kimageshop
mailing list