Fix crash with get_keywords_color
(cherry picked from commit 8d993f6357
)
This commit is contained in:
parent
d871ac670d
commit
8423d98e1c
|
@ -4457,6 +4457,8 @@ bool TextEdit::has_keyword_color(String p_keyword) const {
|
|||
}
|
||||
|
||||
Color TextEdit::get_keyword_color(String p_keyword) const {
|
||||
|
||||
ERR_FAIL_COND_V(!keywords.has(p_keyword), Color())
|
||||
return keywords[p_keyword];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue