summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tk/check.c4
1 files changed, 3 insertions, 1 deletions
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) {