diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 2864ed652ae..5ede89c3394 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -827,7 +827,7 @@ Ref create_editor_theme(const Ref p_theme) { Ref style_tree_cursor = style_default->duplicate(); style_tree_cursor->set_draw_center(false); - style_tree_cursor->set_border_width_all(border_width); + style_tree_cursor->set_border_width_all(MAX(1, border_width)); style_tree_cursor->set_border_color(contrast_color_1); Ref style_tree_title = style_default->duplicate();