mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
bcb9f98f8b
commit
3959664448
52 files changed
+1864
-407
No files matched your search
@@ -38,7 +38,7 @@ func (r *Renderer) renderImage(ctx *canvas.Context, obj ImageObject, pageH float
|
||||
if obj.Visible != nil && !*obj.Visible || obj.Alpha != nil && *obj.Alpha == 0 {
|
||||
return
|
||||
}
|
||||
resPath, ok := r.Reader.ResMap[obj.ResourceID]
|
||||
resPath, ok := resourceValue(r.Reader.ResMap, obj.ResourceID)
|
||||
if !ok {
|
||||
r.renderError = fmt.Errorf("image resource %q not found", obj.ResourceID)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user