diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index 352d0f2a..2ac7e581 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -742,6 +742,9 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, // Here we add the item to the scene addItem(polygonItem); + if (!mCurrentStroke) + mCurrentStroke = new UBGraphicsStroke(); + if (mCurrentStroke) { polygonItem->setStroke(mCurrentStroke);