From d934d00828a58361b822aa557fe510e85f495182 Mon Sep 17 00:00:00 2001 From: guemax Date: Sat, 22 Jul 2023 12:11:28 +0200 Subject: [PATCH] Remove spaces from input of HTML color in color picker Fixes #79338 --- scene/gui/color_picker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index e50a1c0e881..2a0f85a1bec 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -559,7 +559,7 @@ void ColorPicker::_html_submitted(const String &p_html) { } const Color previous_color = color; - color = Color::from_string(p_html, previous_color); + color = Color::from_string(p_html.strip_edges(), previous_color); if (!is_editing_alpha()) { color.a = previous_color.a;