mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 10:38:13 +08:00
Create a history step when importing SVG files (#1656)
* Create a history step when importing SVG files * Removed additional usvg::Tree::from_str call based on feedback, used DocumentHistoryBackward in case it fails
This commit is contained in:
@@ -37,7 +37,7 @@ pub fn new_image_layer(image_frame: ImageFrame<Color>, id: NodeId, parent: Layer
|
||||
/// Create a new group layer from an svg
|
||||
pub fn new_svg_layer(svg: String, transform: glam::DAffine2, id: NodeId, parent: LayerNodeIdentifier, responses: &mut VecDeque<Message>) -> LayerNodeIdentifier {
|
||||
let insert_index = -1;
|
||||
responses.add(GraphOperationMessage::NewSvg {
|
||||
responses.add(DocumentMessage::ImportSvg {
|
||||
id,
|
||||
svg,
|
||||
transform,
|
||||
|
||||
Reference in New Issue
Block a user