Commit 87c48bbb authored by Claudio Valerio's avatar Claudio Valerio

removed duplicated code

parent ee069c75
......@@ -1122,7 +1122,6 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QUrl
qDebug() << "accepting mime type" << mimeType << "as vecto image";
UBGraphicsSvgItem* svgItem = mActiveScene->addSvg(sourceUrl, pPos, pData);
svgItem->setSourceUrl(sourceUrl);
if (isBackground)
......
......@@ -836,12 +836,6 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth)
removeItem(intersectedPolygonItem);
if (bApplyTransform)
intersectedPolygonItem->setTransform(t);
removeItem(intersectedPolygonItem);
if (bApplyTransform)
intersectedPolygonItem->setTransform(t);
}
if (!intersectedItems.empty())
......
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