Commit c2e16e5c authored by Clément Fauconnier's avatar Clément Fauconnier

fixed a bug where erasing a pen stroke with simplifyPenStrokes=true ereased...

fixed a bug where erasing a pen stroke with simplifyPenStrokes=true ereased every overlapping polygons of it
parent ad4eec20
...@@ -1024,7 +1024,7 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth) ...@@ -1024,7 +1024,7 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth)
} }
else if (eraserPath.intersects(itemPainterPath)) else if (eraserPath.intersects(itemPainterPath))
{ {
itemPainterPath.setFillRule(Qt::WindingFill);
QPainterPath newPath = itemPainterPath.subtracted(eraserPath); QPainterPath newPath = itemPainterPath.subtracted(eraserPath);
#pragma omp critical #pragma omp critical
{ {
......
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