mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
This commit is contained in:
1 parent
f312350f73
commit
47f7628959
7 files changed
+171
-40
No files matched your search
@@ -655,10 +655,8 @@ func editorObjects(index int, text *ofdgo.PageText) ([]any, error) {
|
||||
switch object.Type {
|
||||
case "TextObject":
|
||||
box = textBoxes[id]
|
||||
case "ImageObject":
|
||||
box, err = ofdgo.ParseBox(object.ImageObject.Boundary)
|
||||
case "PathObject":
|
||||
box, err = ofdgo.ParseBox(object.PathObject.Boundary)
|
||||
default:
|
||||
box, err = currentSession.Renderer.ObjectBounds(object, layer.DrawParam)
|
||||
}
|
||||
if err != nil {
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user