Skip to content
Snippets Groups Projects
Commit cf134320 authored by Dmitry Kazakov's avatar Dmitry Kazakov Committed by Halla Rempt
Browse files

Fix anisotropy in Color Smudge brush engine

The offset must be calculated correctly

BUG:334538
parent 6d7a16d0
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,9 @@ KisSpacingInformation KisColorSmudgeOp::paintAt(const KisPaintInformation& info)
*/
updateMask(info, scale, rotation, scatteredPos);
QRect srcDabRect = m_dstDabRect.translated((m_lastPaintPos - scatteredPos).toPoint());
QPointF newCenterPos = QRectF(m_dstDabRect).center();
QRect srcDabRect = m_dstDabRect.translated((m_lastPaintPos - newCenterPos).toPoint());
/**
* Save the center of the current dab to know where to read the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment