Commit 9df8c0f8 authored by Claudio Valerio's avatar Claudio Valerio

removed bad fix. Duplication of imported image

parent 47adb2be
......@@ -101,17 +101,6 @@ QList<UBGraphicsItem*> UBImportImage::import(const QUuid& uuid, const QString& f
pixmapItem->setPixmap(pix);
result << pixmapItem;
QString documentPath = UBApplication::boardController->selectedDocument()->persistencePath();
QString fileName = UBPersistenceManager::imageDirectory + "/" + pixmapItem->uuid().toString() + ".png";
QString path = documentPath + "/" + fileName;
if (!QFile::exists(path))
{
QDir dir;
dir.mkdir(documentPath + "/" + UBPersistenceManager::imageDirectory);
pixmapItem->pixmap().toImage().save(path, "PNG");
}
return result;
}
......
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