Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 63c46d12 authored by Boudewijn Rempt's avatar Boudewijn Rempt

create merged layer opaque with composite_over

parent de5b6482
......@@ -933,9 +933,9 @@ KisLayerSP KisImage::mergeDown(KisLayerSP layer, const KisMetaData::MergeStrateg
gc.bitBlt(layerProjectionExtent.topLeft(), layer->projection(), layerProjectionExtent);
}
KisPaintLayerSP mergedLayer = new KisPaintLayer(this, layer->name(), layer->opacity(), mergedDevice);
KisPaintLayerSP mergedLayer = new KisPaintLayer(this, layer->name(), OPACITY_OPAQUE_U8, mergedDevice);
Q_CHECK_PTR(mergedLayer);
mergedLayer->setCompositeOp(layer->compositeOp()->id());
mergedLayer->setCompositeOp(COMPOSITE_OVER);
mergedLayer->setChannelFlags(layer->channelFlags());
// Merge meta data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment