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

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
if (mode == CursorIsOutline){
return path.translated(pos);
} else {
// workaround?
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