Commit 8cdf7856 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Properly initialize continued transform in external source mode

This patch fixes the problem in the inplace mode. The patch for legacy
mode is still pending
parent 97d48c01
......@@ -395,9 +395,14 @@ void InplaceTransformStrokeStrategy::initStrokeCallback()
argsAreInitialized]() mutable {
QRect srcRect;
if (m_d->externalSource) {
KisPaintDeviceSP externalSource =
m_d->externalSource ? m_d->externalSource :
(argsAreInitialized && m_d->initialTransformArgs.externalSource()) ?
m_d->initialTransformArgs.externalSource() : 0;
if (externalSource) {
// Start the transformation around the visible pixels of the external image
srcRect = m_d->externalSource->exactBounds();
srcRect = externalSource->exactBounds();
} else if (m_d->selection) {
srcRect = m_d->selection->selectedExactRect();
} else {
......
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