<div class="gmail_quote">On Sun, Oct 3, 2010 at 10:45 AM, Cyrille Berger <span dir="ltr">&lt;&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
SVN commit 1182049 by berger:<br>
<br>
Fix: merging of layers with a different color space than their group layer<br>
<br>
BUG:247037<br>
<br>
<br>
 M  +1 -1      kis_image.cc<br>
<br>
<br>
--- trunk/koffice/krita/image/kis_image.cc #1182048:1182049<br>
@@ -708,7 +708,7 @@<br>
<br>
     KisPainter gc(mergedDevice);<br>
     gc.setChannelFlags(layer-&gt;channelFlags());<br>
-    gc.setCompositeOp(layer-&gt;compositeOp());<br>
+    gc.setCompositeOp(layer-&gt;colorSpace()-&gt;compositeOp(layer-&gt;compositeOp()-&gt;id()));<br>
     gc.setOpacity(layer-&gt;opacity());<br>
     gc.bitBlt(layerExtent.topLeft(), layer-&gt;projection(), layerExtent);<br>
</blockquote></div><br><br>I think it would be much more obvious and safe to use:<br><br>gc.setCompositeOp(mergedDevice-&gt;colorSpace()-&gt;compositeOp(layer-&gt;compositeOpId()));<br><br>Especially, taking into account the fact, that colorspaces of the mergedDevice and the layer may easily not coincide.<br>
<br clear="all"><br>-- <br>Dmitry Kazakov<br>