mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
1 parent
444c01b976
commit
e9caaa4193
31 files changed
+639
-182
No files matched your search
@@ -204,11 +204,17 @@ func appendCompositeClip(node *editorCompositeNode, shape PathObject, matrix Mat
|
||||
}
|
||||
var patch editorXMLPatch
|
||||
if original := node.node.child("Clips"); original != nil {
|
||||
clip := editorXMLEncodedFragment(data, root.children[0])
|
||||
clip, err := editorXMLEncodedFragment(data, root.children[0], original.name.Space)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
content := append(bytes.Clone(node.data[original.open:original.close]), clip...)
|
||||
patch = editorXMLContent(node.data, original, content)
|
||||
} else {
|
||||
data = editorXMLEncodedFragment(data, root)
|
||||
data, err = editorXMLEncodedFragment(data, root, node.node.name.Space)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if actions := node.node.child("Actions"); actions != nil {
|
||||
patch = editorXMLPatch{actions.end, actions.end, data}
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user