removed duplicated code

preferencesAboutTextFull
Claudio Valerio 11 years ago
parent ee069c75ef
commit 87c48bbbf8
  1. 1
      src/board/UBBoardController.cpp
  2. 6
      src/domain/UBGraphicsScene.cpp

@ -1122,7 +1122,6 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QUrl
qDebug() << "accepting mime type" << mimeType << "as vecto image"; qDebug() << "accepting mime type" << mimeType << "as vecto image";
UBGraphicsSvgItem* svgItem = mActiveScene->addSvg(sourceUrl, pPos, pData); UBGraphicsSvgItem* svgItem = mActiveScene->addSvg(sourceUrl, pPos, pData);
svgItem->setSourceUrl(sourceUrl); svgItem->setSourceUrl(sourceUrl);
if (isBackground) if (isBackground)

@ -836,12 +836,6 @@ void UBGraphicsScene::eraseLineTo(const QPointF &pEndPoint, const qreal &pWidth)
removeItem(intersectedPolygonItem); removeItem(intersectedPolygonItem);
if (bApplyTransform) if (bApplyTransform)
intersectedPolygonItem->setTransform(t); intersectedPolygonItem->setTransform(t);
removeItem(intersectedPolygonItem);
if (bApplyTransform)
intersectedPolygonItem->setTransform(t);
} }
if (!intersectedItems.empty()) if (!intersectedItems.empty())

Loading…
Cancel
Save