mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 16:59:27 +08:00
1 parent
2c96b4e490
commit
32ab7fe732
18 files changed
+83
-56
No files matched your search
@@ -133,7 +133,7 @@ func (e *Editor) eraseCompositeObjects(page int, path ObjectPath, indexes []int,
|
||||
return fmt.Errorf("composite member cannot be erased")
|
||||
}
|
||||
clips := *editorObjectClips(&node.object)
|
||||
inverse, ok := node.matrix(clips == nil || clips.TransFlag == nil || *clips.TransFlag).Invert()
|
||||
inverse, ok := node.matrix(clips.usesObjectMatrix()).Invert()
|
||||
if !ok {
|
||||
return fmt.Errorf("composite clip transform is not invertible")
|
||||
}
|
||||
@@ -212,7 +212,7 @@ func (e *Editor) eraseObjects(page int, ids []string, box Box, points []Point, r
|
||||
*clips = &Clips{}
|
||||
}
|
||||
matrix := IdentityMatrix
|
||||
if (*clips).TransFlag == nil || *(*clips).TransFlag {
|
||||
if (*clips).usesObjectMatrix() {
|
||||
if object.Type == "ImageObject" && ctm == "" {
|
||||
ctm = Matrix{a: frame.W, d: frame.H}.String()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user