on 'stroke' load the transformation is set to the stroke group too. This allows to erase a stroke on a loaded document

preferencesAboutTextFull
Claudio Valerio 12 years ago
parent 68db0058c1
commit 849ed076a2
  1. 3
      src/adaptors/UBSvgSubsetAdaptor.cpp

@ -570,6 +570,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
group = new UBGraphicsStrokesGroup();
mStrokesList.insert(parentId,group);
currentStroke = new UBGraphicsStroke();
group->setTransform(polygonItem->transform());
}
else
group = mStrokesList.value(parentId);
@ -582,7 +583,6 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
polygonItem->show();
group->addToGroup(polygonItem);
}
}
else if (mXmlReader.name() == "polyline")
@ -601,6 +601,7 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene()
group = new UBGraphicsStrokesGroup();
mStrokesList.insert(parentId,group);
currentStroke = new UBGraphicsStroke();
group->setTransform(polygonItem->transform());
}
else
group = mStrokesList.value(parentId);

Loading…
Cancel
Save