Commit aaa26cde authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fixed updates of the outline of the duplicate paintop

We do not paint outline when it is disabled in the config

BUG:287056
parent e748a132
......@@ -172,7 +172,7 @@ void KisDuplicateOpSettings::paintOutline(const QPointF& pos, KisImageWSP image,
QPainterPath KisDuplicateOpSettings::brushOutline(const QPointF& pos, KisPaintOpSettings::OutlineMode mode, qreal scale, qreal rotation) const
{
QPainterPath path;
path = KisBrushBasedPaintOpSettings::brushOutline(QPointF(0.0,0.0),KisPaintOpSettings::CursorIsOutline, scale, rotation);
path = KisBrushBasedPaintOpSettings::brushOutline(QPointF(), mode, scale, rotation);
QPainterPath copy(path);
QRectF rect2 = copy.boundingRect();
......@@ -194,11 +194,5 @@ QPainterPath KisDuplicateOpSettings::brushOutline(const QPointF& pos, KisPaintOp
path.moveTo(rect2.topRight());
path.lineTo(rect2.bottomLeft());
if (mode == CursorIsOutline){
return path.translated(pos);
} else {
// workaround?
//copy.addEllipse(QRectF(0,0,1,1));
return copy.translated(pos);
}
return path.translated(pos);
}
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