Fixed adding lines to stroke groups.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent 816bfaa428
commit 76b2d83bc2
  1. 3
      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);

Loading…
Cancel
Save