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 {
|
func (s *Styles) Get(name string) *Style {
|
||||||
style, ok := s.List[name]
|
var style *Style
|
||||||
if !ok {
|
var ok bool = false
|
||||||
|
if style, ok = s.List[name]; !ok {
|
||||||
style = defStyle
|
style = defStyle
|
||||||
}
|
}
|
||||||
return style
|
return style
|
||||||
|
|
Loading…
Reference in New Issue
Block a user