fixed some build issues

preferencesAboutTextFull
Claudio Valerio 11 years ago
parent dbc0f592d0
commit fc87cb062a
  1. 3
      src/adaptors/UBSvgSubsetAdaptor.cpp
  2. 2
      src/board/UBBoardController.cpp

@ -1902,6 +1902,9 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::svgItemToLinkedSvg(UBGraphicsSvgItem
mXmlWriter.writeStartElement("image"); mXmlWriter.writeStartElement("image");
QString fileName = UBPersistenceManager::imageDirectory + "/" + svgItem->uuid().toString() + ".svg";
mXmlWriter.writeAttribute(nsXLink, "href", fileName); mXmlWriter.writeAttribute(nsXLink, "href", fileName);
graphicsItemToSvg(svgItem); graphicsItemToSvg(svgItem);

@ -1154,7 +1154,7 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QUrl
if (!file.open(QIODevice::WriteOnly)) if (!file.open(QIODevice::WriteOnly))
{ {
qWarning() << "cannot open file for writing embeded svg content " << path; qWarning() << "cannot open file for writing embeded svg content " << path;
return; return NULL;
} }
file.write(svgItem->fileData()); file.write(svgItem->fileData());

Loading…
Cancel
Save