fix(问题修复): 修复套印转换与编辑缺陷
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-09-30 16:35:24 +08:00
1 parent e4af1e7318
commit 59a2c4d8fe
9 files changed
+187 -83

No files matched your search

+3 -2
View File
@@ -208,8 +208,9 @@ func (e *Editor) RGBColor(value color.NRGBA) (*FillColor, error) {
}
}
for _, resource := range e.resources {
if resource.space != nil {
result.ColorSpace = resource.space.ID
space := resource.space
if space != nil && space.Type == "RGB" && (space.BitsPerComponent == 0 || space.BitsPerComponent == 8) && len(space.Palette) == 0 {
result.ColorSpace = space.ID
return result, nil
}
}