mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:44:23 +08:00
This commit is contained in:
1 parent
c2d9a349c5
commit
0f2fb7a842
17 files changed
+113
-61
No files matched your search
@@ -47,12 +47,13 @@ type editorSource struct {
|
||||
|
||||
// editorObjectOrigin 保留原对象的XML语义,供复制和局部更新复用
|
||||
type editorObjectOrigin struct {
|
||||
editor *Editor
|
||||
page *editorSourcePage
|
||||
data []byte
|
||||
node *editorXML
|
||||
object GraphicObject
|
||||
reason error
|
||||
editor *Editor
|
||||
document editorDocumentIdentity
|
||||
page *editorSourcePage
|
||||
data []byte
|
||||
node *editorXML
|
||||
object GraphicObject
|
||||
reason error
|
||||
}
|
||||
|
||||
// editorSourcePage 保存页面原文、解析快照及图层和页块内的对象位置
|
||||
@@ -613,6 +614,7 @@ func (e *Editor) setObjectOrigin(id string, origin *editorObjectOrigin) {
|
||||
if origin != nil && origin.page == nil && origin.editor == nil {
|
||||
copy := *origin
|
||||
copy.editor = e
|
||||
copy.document = e.documentIdentity()
|
||||
origin = ©
|
||||
}
|
||||
e.origins[id] = origin
|
||||
|
||||
Reference in new issue
Block a user