mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
26568927e5
commit
2d46e6f0ba
3 files changed
+23
-9
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user