feat(注解编辑): 修复注解引用与编辑
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-10 15:21:55 +08:00
1 parent 26568927e5
commit 2d46e6f0ba
3 files changed
+23 -9

No files matched your search

+2 -1
View File
@@ -180,12 +180,13 @@ func (e *Editor) editAnnotations(index int, ids []string, edit func([]byte, *edi
var patches []editorXMLPatch
found := make(map[string]bool, len(ids))
remaining := 0
pageID := editorResourceID(e.pages[index].ID)
for _, ref := range root.children {
if !ref.matchesOFD("Page") {
continue
}
remaining++
if ref.attr("PageID") != e.pages[index].ID {
if pageID == "" || editorResourceID(ref.attr("PageID")) != pageID {
continue
}
loc := ref.child("FileLoc")