feat(标准版本): 修复裁剪字形并完善版本兼容
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-09 23:15:06 +08:00
1 parent 444c01b976
commit e9caaa4193
31 files changed
+639 -182

No files matched your search

+2 -2
View File
@@ -134,7 +134,7 @@ func (e *Editor) PasteAnnotations(page int, selection *AnnotationSelection, dx,
content = append(content, bytes.TrimPrefix(data, []byte(xml.Header))...)
result = append(result, id)
}
if err := edit.appendAnnotations(page, content); err != nil {
if err := edit.appendAnnotations(page, content, false); err != nil {
return err
}
edit.source.annotationStates = states
@@ -160,7 +160,7 @@ func (e *Editor) PasteAnnotations(page int, selection *AnnotationSelection, dx,
var added []byte
for _, name := range selection.resources {
if !registered[name] {
added = append(added, editorXMLText("DocumentRes", "/"+name)...)
added = append(added, common.textXML("DocumentRes", "/"+name)...)
registered[name] = true
}
}