]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
label-pango: Fix inverted conditional
authorRay Strode <rstrode@redhat.com>
Thu, 28 Dec 2023 15:53:02 +0000 (10:53 -0500)
committerRay Strode <rstrode@redhat.com>
Thu, 28 Dec 2023 15:53:02 +0000 (10:53 -0500)
Right now we skip sizing the control when force == true because
of an inverted conditional.

This commit fixes that.

src/plugins/controls/label-pango/plugin.c

index 04fb01a1cf16919b0d6105335f5d9085be011978..70ab97478b7de9645983226d72a77cd6dffdbee7 100644 (file)
@@ -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) {