1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

Merge pull request #29539 from qarmin/fix_crash_with_get_keywords_color

Fix crash with get_keywords_color
This commit is contained in:
Rémi Verschelde
2019-06-11 14:19:18 +02:00
committed by GitHub

View File

@@ -4682,6 +4682,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];
}