Godot Engine – Multi-platform 2D and 3D game engine
Tweak warning to reflect current state
Enzo Novoselic808be5198c38
diff --git a/scene/gui/label.cpp b/scene/gui/label.cppindex 87138e5dd79..4de80ad7403 100644--- a/scene/gui/label.cpp+++ b/scene/gui/label.cpp@@ -647,8 +647,8 @@ PackedStringArray Label::get_configuration_warnings() const {// but for now we have to warn about this impossible to resolve combination.// See GH-83546.if (is_inside_tree() && get_tree()->get_edited_scene_root() != this) {- if (autowrap_mode != TextServer::AUTOWRAP_OFF && get_combined_maximum_size().width <= 0) {- warnings.push_back(RTR("Labels with autowrapping enabled must have a positive custom maximum width configured to work correctly."));+ if (autowrap_mode != TextServer::AUTOWRAP_OFF && get_combined_maximum_size().width <= 0 && get_custom_minimum_size().width <= 0) {+ warnings.push_back(RTR("Labels with autowrapping enabled must have a positive custom minimum or maximum width configured to work correctly."));}}