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 96157f51 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix move-selection action after using locked-alpha painting

The configuration of the indirect painting infrastructure was not reset
after doing the stroke, therefore move tool used incorrect settings.

BUG:402770
parent dbf24cc8
......@@ -176,4 +176,7 @@ void KisIndirectPaintingSupport::releaseResources()
{
d->temporaryTarget = 0;
d->selection = 0;
d->compositeOp = COMPOSITE_OVER;
d->compositeOpacity = OPACITY_OPAQUE_U8;
d->channelFlags.clear();
}
......@@ -82,6 +82,8 @@ void MoveSelectionStrokeStrategy::initStrokeCallback()
indirect->setTemporaryTarget(movedDevice);
indirect->setTemporaryCompositeOp(COMPOSITE_OVER);
indirect->setTemporaryOpacity(OPACITY_OPAQUE_U8);
indirect->setTemporarySelection(0);
indirect->setTemporaryChannelFlags(QBitArray());
m_initialDeviceOffset = QPoint(movedDevice->x(), movedDevice->y());
......
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