Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
aaa26cde
Commit
aaa26cde
authored
Nov 20, 2011
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings.cpp
View file @
aaa26cde
...
...
@@ -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
::
CursorIsOutlin
e
,
scale
,
rotation
);
path
=
KisBrushBasedPaintOpSettings
::
brushOutline
(
QPointF
(
),
mod
e
,
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
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment