[calligra] krita/ui: don't even try to merge if there's nothing to merge

Dmitry Kazakov dimula73 at gmail.com
Sat Feb 25 08:35:58 UTC 2012


On Sat, Feb 25, 2012 at 11:31 AM, Boudewijn Rempt <boud at valdyas.org> wrote:

> On Saturday 25 February 2012 Feb, Dmitry Kazakov wrote:
> > Probably, we should be more accurate and not to check
> > !layer->prevSibling(), but introduce functions like prevLayer(). Because
> > this check doesn't cover the case when masks and layers are mixed.
>
> Possibly... This is the same check as is done in KisImage::mergeDown. I'm
> reluctant to add new api right now, though. At the moment, when merging
> down a loayer, all masks are discarded anyway.
>

In this case another masks may cause a trouble: the ones which are owned by
layer's parent. Ok, just a notice.

-- 
Dmitry Kazakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kimageshop/attachments/20120225/49f866f1/attachment.html>


More information about the kimageshop mailing list