From 2d27e5662a226f816d8621e6c5779483598b9d02 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 28 May 2024 04:02:35 +0300 Subject: [PATCH] label size fix --- src/graphics/ui/elements/Label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/ui/elements/Label.cpp b/src/graphics/ui/elements/Label.cpp index f8e9fa07..9e355e86 100644 --- a/src/graphics/ui/elements/Label.cpp +++ b/src/graphics/ui/elements/Label.cpp @@ -83,7 +83,7 @@ void Label::setText(std::wstring text) { this->text = text; cache.update(this->text, multiline, textWrap); - if (cache.font) { + if (cache.font && autoresize) { setSize(calcSize()); } }