From 674e4bedcc69288da92248e0f988b45f1c055fee Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 05 Aug 2021 16:11:01 -0400 Subject: tk: Fix optional label in check --- (limited to 'src/tk') diff --git a/src/tk/check.c b/src/tk/check.c index 344ab16..6f70dd0 100644 --- a/src/tk/check.c +++ b/src/tk/check.c @@ -57,7 +57,9 @@ _mftk_check_layout(struct mftk_widget *w) { struct mftk_check *c = (struct mftk_check *) w; - mftk_widget_layout(c->label); + if (c->label != NULL) { + mftk_widget_layout(c->label); + } w->w = c->butn_width; if (c->label != NULL) { -- cgit v0.9.1