fix style.Styles.Get
This commit is contained in:
parent
6a5875b94c
commit
bd0bb96234
|
@ -83,8 +83,9 @@ func NewStyles() *Styles {
|
|||
}
|
||||
|
||||
func (s *Styles) Get(name string) *Style {
|
||||
style, ok := s.List[name]
|
||||
if !ok {
|
||||
var style *Style
|
||||
var ok bool = false
|
||||
if style, ok = s.List[name]; !ok {
|
||||
style = defStyle
|
||||
}
|
||||
return style
|
||||
|
|
Loading…
Reference in New Issue
Block a user