Commit 3a73a2c7 authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Lukáš Tvrdý
Browse files

Fix bitblit operation for paint device that starts at 0,0

Fixes glitches when bitbliting gmic result on moved layer with selection

BUG:325771
parent dd716680
......@@ -538,7 +538,7 @@ void KisPainter::bitBltImpl(qint32 dstX, qint32 dstY,
qint32 columnsRemaining = srcWidth;
qint32 numContiguousDstRows = dstIt->numContiguousRows(dstY_);
qint32 numContiguousSrcRows = srcIt->numContiguousRows(srcY_);
qint32 numContiguousSelRows = maskIt->numContiguousRows(srcY_);
qint32 numContiguousSelRows = maskIt->numContiguousRows(dstY_);
qint32 rows = qMin(numContiguousDstRows, numContiguousSrcRows);
rows = qMin(rows, numContiguousSelRows);
......@@ -548,7 +548,7 @@ void KisPainter::bitBltImpl(qint32 dstX, qint32 dstY,
qint32 numContiguousDstColumns = dstIt->numContiguousColumns(dstX_);
qint32 numContiguousSrcColumns = srcIt->numContiguousColumns(srcX_);
qint32 numContiguousSelColumns = maskIt->numContiguousColumns(srcX_);
qint32 numContiguousSelColumns = maskIt->numContiguousColumns(dstX_);
qint32 columns = qMin(numContiguousDstColumns, numContiguousSrcColumns);
columns = qMin(columns, numContiguousSelColumns);
......
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