|
|
@ -477,6 +477,7 @@ bool UBGraphicsScene::inputDeviceMove(const QPointF& scenePos, const qreal& pres |
|
|
|
|
|
|
|
|
|
|
|
if (currentTool == UBStylusTool::Line || dc->mActiveRuler) |
|
|
|
if (currentTool == UBStylusTool::Line || dc->mActiveRuler) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (UBDrawingController::drawingController()->stylusTool() != UBStylusTool::Marker) |
|
|
|
if(NULL != mpLastPolygon && NULL != mCurrentStroke && mAddedItems.size() > 0){ |
|
|
|
if(NULL != mpLastPolygon && NULL != mCurrentStroke && mAddedItems.size() > 0){ |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(mpLastPolygon); |
|
|
|
UBCoreGraphicsScene::removeItemFromDeletion(mpLastPolygon); |
|
|
|
mAddedItems.remove(mpLastPolygon); |
|
|
|
mAddedItems.remove(mpLastPolygon); |
|
|
@ -742,6 +743,9 @@ void UBGraphicsScene::drawLineTo(const QPointF &pEndPoint, const qreal &pWidth, |
|
|
|
// Here we add the item to the scene
|
|
|
|
// Here we add the item to the scene
|
|
|
|
addItem(polygonItem); |
|
|
|
addItem(polygonItem); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!mCurrentStroke) |
|
|
|
|
|
|
|
mCurrentStroke = new UBGraphicsStroke(); |
|
|
|
|
|
|
|
|
|
|
|
if (mCurrentStroke) |
|
|
|
if (mCurrentStroke) |
|
|
|
{ |
|
|
|
{ |
|
|
|
polygonItem->setStroke(mCurrentStroke); |
|
|
|
polygonItem->setStroke(mCurrentStroke); |
|
|
|