Fixed fall on assertion if svg writer.

preferencesAboutTextFull
Aleksei Kanash 12 years ago
parent b9c26504ea
commit cbe8469b70
  1. 8
      src/adaptors/UBSvgSubsetAdaptor.cpp

@ -1229,10 +1229,10 @@ bool UBSvgSubsetAdaptor::UBSvgSubsetWriter::persistScene(int pageIndex)
//disabling g section parsing as a group of elements. Use groups refs instead //disabling g section parsing as a group of elements. Use groups refs instead
// mXmlWriter.writeStartElement("g"); // mXmlWriter.writeStartElement("g");
// mXmlWriter.writeAttribute(UBSettings::uniboardDocumentNamespaceUri, "uuid", UBStringUtils::toCanonicalUuid(strokesGroupItem->uuid())); // mXmlWriter.writeAttribute(UBSettings::uniboardDocumentNamespaceUri, "uuid", UBStringUtils::toCanonicalUuid(strokesGroupItem->uuid()));
QMatrix matrix = item->sceneMatrix(); // QMatrix matrix = item->sceneMatrix();
if (!matrix.isIdentity()){ // if (!matrix.isIdentity()){
mXmlWriter.writeAttribute("transform", toSvgTransform(matrix)); // mXmlWriter.writeAttribute("transform", toSvgTransform(matrix));
} // }
// Add the polygons // Add the polygons
foreach(QGraphicsItem* item, strokesGroupItem->childItems()){ foreach(QGraphicsItem* item, strokesGroupItem->childItems()){

Loading…
Cancel
Save