From: Ray Strode Date: Thu, 28 Dec 2023 15:53:02 +0000 (-0500) Subject: label-pango: Fix inverted conditional X-Git-Tag: 24.004.60~16^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b6c4b86849787e59acd20312acfe651ea46a204;p=thirdparty%2Fplymouth.git label-pango: Fix inverted conditional Right now we skip sizing the control when force == true because of an inverted conditional. This commit fixes that. --- diff --git a/src/plugins/controls/label-pango/plugin.c b/src/plugins/controls/label-pango/plugin.c index 04fb01a1..70ab9747 100644 --- a/src/plugins/controls/label-pango/plugin.c +++ b/src/plugins/controls/label-pango/plugin.c @@ -319,7 +319,7 @@ size_control (ply_label_plugin_control_t *label, int text_width; int text_height; - if (force && !label->needs_size_update) + if (!force && !label->needs_size_update) return; /* Size already is up to date */ if (!force && label->is_hidden) {