diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-05 16:11:01 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-05 16:11:01 (EDT) |
commit | 674e4bedcc69288da92248e0f988b45f1c055fee (patch) | |
tree | d7fa926a919f99cad6ac481044f58e12b29a9358 /src | |
parent | 4bfe5bf14a7b3a470cb1f96655d31649484cbbc7 (diff) | |
download | mazefight-674e4bedcc69288da92248e0f988b45f1c055fee.zip mazefight-674e4bedcc69288da92248e0f988b45f1c055fee.tar.gz mazefight-674e4bedcc69288da92248e0f988b45f1c055fee.tar.bz2 |
tk: Fix optional label in check
Diffstat (limited to 'src')
-rw-r--r-- | src/tk/check.c | 4 |
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) { |