Go: Fix parsing of nullable colors

Fixes #6629
This commit is contained in:
Kovid Goyal
2023-09-15 20:36:24 +05:30
parent 5c4efc0fd7
commit 863adb3e8d
2 changed files with 2 additions and 1 deletions

View File

@@ -172,7 +172,7 @@ func ParseColorOrNone(color string) (NullableColor, error) {
return NullableColor{}, nil
}
c, err := ParseColor(raw)
return NullableColor{Color: c}, err
return NullableColor{Color: c, IsSet: err == nil}, err
}
var named_colors = map[string]uint8{