Commit 3ae76a85 authored by C. Boemann's avatar C. Boemann
Browse files

Fix artifacts due to linewidth

We just use the method already used for lines with markers.
It's similar idea to what the bug owner posted, just more advanced

BUG: 260518
parent 5115be3c
......@@ -410,17 +410,13 @@ QRectF KoPathShape::boundingRect() const
QTransform transform = absoluteTransformation(0);
// calculate the bounding rect of the transformed outline
QRectF bb;
if (d->startMarker.marker() || d->endMarker.marker()) {
KoShapeStroke *lineBorder = dynamic_cast<KoShapeStroke*>(stroke());
QPen pen;
if (lineBorder) {
pen.setWidthF(lineBorder->lineWidth());
}
bb = transform.map(pathStroke(pen)).boundingRect();
}
else {
bb = transform.map(outline()).boundingRect();
KoShapeStroke *lineBorder = dynamic_cast<KoShapeStroke*>(stroke());
QPen pen;
if (lineBorder) {
pen.setWidthF(lineBorder->lineWidth());
}
bb = transform.map(pathStroke(pen)).boundingRect();
if (stroke()) {
KoInsets inset;
stroke()->strokeInsets(this, inset);
......
Supports Markdown
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