From c55bf2af537d3ba08810a57162632912639203d7 Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Mon, 29 Apr 2013 14:27:15 +0200 Subject: [PATCH] restored smoothing line --- src/domain/UBGraphicsScene.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index e3c92ec2..32e07bf6 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -742,7 +742,7 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, mCurrentStroke = new UBGraphicsStroke(); - QPolygonF newPolygon = UBGeometryUtils::lineToPolygon(QLineF(mPreviousPoint, pEndPoint), pWidth); + QPolygonF newPolygon = UBGeometryUtils::lineToPolygon(QLineF(mPreviousPoint, pEndPoint), mPreviousWidth, pWidth); if (!mCurrentPolygon) { @@ -767,12 +767,6 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, QPolygonF oldPolygons = strokePainterPath.simplified().toFillPolygon(mCurrentPolygon->sceneTransform().inverted()); newPolygon = oldPolygons.united(newPolygon); - /* foreach(QPolygonF polygon, oldPolygons) - { - newPolygon = polygon.united(newPolygon); - } - */ - mpLastPolygon = mCurrentPolygon; mCurrentPolygon->setPolygon(newPolygon);